summaryrefslogtreecommitdiffstats
path: root/build/Android.common_path.mk
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-07-23 08:03:36 -0700
committerIan Rogers <irogers@google.com>2014-07-23 08:04:22 -0700
commit6a6d3c2712fab6314ed28dc080a50788d270a8fe (patch)
tree281e8172e60c9fcedb2188b792efeb2f3d2fa0e9 /build/Android.common_path.mk
parent0edcfd64f5d187b9f571b00c0309be6e209d474e (diff)
downloadart-6a6d3c2712fab6314ed28dc080a50788d270a8fe.zip
art-6a6d3c2712fab6314ed28dc080a50788d270a8fe.tar.gz
art-6a6d3c2712fab6314ed28dc080a50788d270a8fe.tar.bz2
Use the TMPDIR environment variable for test directory if set.
Bug: 16499668 Change-Id: I7da5559c13597d7bca4e4037a1e9335f0b6d8230
Diffstat (limited to 'build/Android.common_path.mk')
-rw-r--r--build/Android.common_path.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/Android.common_path.mk b/build/Android.common_path.mk
index 8c0d9f2..bd1e8aa 100644
--- a/build/Android.common_path.mk
+++ b/build/Android.common_path.mk
@@ -31,7 +31,11 @@ ART_TARGET_TEST_DIR := /data/art-test
ART_TARGET_TEST_OUT := $(TARGET_OUT_DATA)/art-test
# Directory used for temporary test files on the host.
+ifneq ($(TMPDIR),)
+ART_HOST_TEST_DIR := $(TMPDIR)/test-art-$(shell echo $$PPID)
+else
ART_HOST_TEST_DIR := /tmp/test-art-$(shell echo $$PPID)
+endif
# Core.oat location on the device.
TARGET_CORE_OAT := $(ART_TARGET_TEST_DIR)/$(DEX2OAT_TARGET_ARCH)/core.oat