Allow testrunner to run test when inside ART directory
Test: ./test/testrunner/testrunner.py -j64 --host -b
Bug: 35257742
Change-Id: Ib6264378971ad9f83ece7a51afc95c81935e08fc
diff --git a/test/testrunner/testrunner.py b/test/testrunner/testrunner.py
index f60a6c9..81b7953 100755
--- a/test/testrunner/testrunner.py
+++ b/test/testrunner/testrunner.py
@@ -767,7 +767,10 @@
build_targets += 'test-art-host-run-test-dependencies'
if 'target' in TARGET_TYPES:
build_targets += 'test-art-target-run-test-dependencies'
- build_command = 'make -j' + str(n_thread) + ' ' + build_targets
+ build_command = 'make'
+ build_command += ' -j' + str(n_thread)
+ build_command += ' -C ' + env.ANDROID_BUILD_TOP
+ build_command += ' ' + build_targets
if subprocess.call(build_command.split()):
sys.exit(1)
if user_requested_test:
@@ -786,7 +789,6 @@
except SystemExit:
pass
except:
- print "hello"
print_analysis()
sys.exit(1)