Don't use $PPID

If17221a74b081ebfec8dbf7076b2cd702861eda9 stopped reading $PPID
for the !$TMPDIR case, but still reads $PPID if $TMPDIR is set.
Always use $CWD and $USER to determine the test directory.

Bug: 71766439
Test: m TMPDIR=/tmp nothing && m TMPDIR=/tmp nothing
Change-Id: Iafc5e27328afc32ccaf2b9daf4b5d0bc597bebc5
diff --git a/build/Android.common_test.mk b/build/Android.common_test.mk
index 7fae7f6..c508fe7 100644
--- a/build/Android.common_test.mk
+++ b/build/Android.common_test.mk
@@ -20,14 +20,11 @@
 include art/build/Android.common_path.mk
 
 # Directory used for temporary test files on the host.
-ifneq ($(TMPDIR),)
-ART_HOST_TEST_DIR := $(TMPDIR)/test-art-$(shell echo $$PPID)
-else
 # Use a BSD checksum calculated from CWD and USER as one of the path
 # components for the test output. This should allow us to run tests from
 # multiple repositories at the same time.
-ART_HOST_TEST_DIR := /tmp/test-art-$(shell echo $$CWD-${USER} | sum | cut -d ' ' -f1)
-endif
+ART_TMPDIR := $(if $(TMPDIR),$(TMPDIR),/tmp)
+ART_HOST_TEST_DIR := $(ART_TMPDIR)/test-art-$(shell echo $$CWD-${USER} | sum | cut -d ' ' -f1)
 
 # List of known broken tests that we won't attempt to execute. The test name must be the full
 # rule name such as test-art-host-oat-optimizing-HelloWorld64.