summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Igor Murashkin <iam@google.com> 2017-04-21 23:22:31 +0000
committer android-build-merger <android-build-merger@google.com> 2017-04-21 23:22:31 +0000
commita7dc284d71737dc5ec92004dbc5bf78480db64c6 (patch)
tree6baeb696d5cfc3fc95e75c468c315ed974ba447f
parent9a1bdce8d26699dea1619106e601477ea9571fdd (diff)
parent3fe77aa78038d4012c53dd92b9e6a46b9aa9616e (diff)
Merge "run_build_test_target: Fix run-test not running for art-test[-javac]" am: e81b88f5ee am: b71ae58ca9 am: f9ef18c87f
am: 3fe77aa780 Change-Id: I014e51bec3d06ccbadd30ae9725156bfa8eb423b
-rwxr-xr-xtest/testrunner/run_build_test_target.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testrunner/run_build_test_target.py b/test/testrunner/run_build_test_target.py
index 0ab50afa40..b1274c901a 100755
--- a/test/testrunner/run_build_test_target.py
+++ b/test/testrunner/run_build_test_target.py
@@ -62,7 +62,7 @@ custom_env['SOONG_ALLOW_MISSING_DEPENDENCIES'] = 'true'
print custom_env
os.environ.update(custom_env)
-if target.get('make'):
+if target.has_key('make'):
build_command = 'make'
build_command += ' -j' + str(n_threads)
build_command += ' -C ' + env.ANDROID_BUILD_TOP
@@ -74,7 +74,7 @@ if target.get('make'):
if subprocess.call(build_command.split()):
sys.exit(1)
-if target.get('golem'):
+if target.has_key('golem'):
machine_type = target.get('golem')
# use art-opt-cc by default since it mimics the default preopt config.
default_golem_config = 'art-opt-cc'
@@ -92,7 +92,7 @@ if target.get('golem'):
if subprocess.call(cmd):
sys.exit(1)
-if target.get('run-test'):
+if target.has_key('run-test'):
run_test_command = [os.path.join(env.ANDROID_BUILD_TOP,
'art/test/testrunner/testrunner.py')]
run_test_command += target.get('run-test', [])