ART: Fix gtest stack invocation

Ensure that the stack tool always finds ANDROID_BUILD_TOP, even if
envsetup wasn't run. Follow-up to commit 6acebf451.

Bug: 31098551
Test: m test-art-host-gtest
Test: m SANITIZE_HOST=address test-art-host-gtest
Change-Id: I63dc3f94c31dfc101d8ebfcf63c63684e9a92140
diff --git a/build/Android.gtest.mk b/build/Android.gtest.mk
index 1f210e1..dad2ba6 100644
--- a/build/Android.gtest.mk
+++ b/build/Android.gtest.mk
@@ -468,7 +468,7 @@
 	$(hide) ($$(call ART_TEST_SKIP,$$@) && set -o pipefail && \
 		ASAN_OPTIONS=detect_leaks=1 $$< 2>&1 | tee $$<.tmp.out >&2 && \
 		{ $$(call ART_TEST_PASSED,$$@) ; rm $$<.tmp.out ; }) || \
-		( grep -q AddressSanitizer $$<.tmp.out && \
+		( grep -q AddressSanitizer $$<.tmp.out && export ANDROID_BUILD_TOP=`pwd` && \
 			{ echo "ABI: 'x86_64'" | cat - $$<.tmp.out | development/scripts/stack | tail -n 3000 ; } ; \
 		rm $$<.tmp.out ; $$(call ART_TEST_FAILED,$$@))
 endif