OSDN Git Service

Allow testrunner to run test when inside ART directory
authorShubham Ajmera <shubhamajmera@google.com>
Fri, 10 Feb 2017 23:15:05 +0000 (23:15 +0000)
committerShubham Ajmera <shubhamajmera@google.com>
Fri, 10 Feb 2017 23:18:26 +0000 (23:18 +0000)
Test: ./test/testrunner/testrunner.py -j64 --host -b
Bug: 35257742
Change-Id: Ib6264378971ad9f83ece7a51afc95c81935e08fc

test/testrunner/testrunner.py

index f60a6c9..81b7953 100755 (executable)
@@ -767,7 +767,10 @@ def main():
       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 @@ def main():
   except SystemExit:
     pass
   except:
-    print "hello"
     print_analysis()
     sys.exit(1)