diff options
author | Vladimir Marko <vmarko@google.com> | 2021-04-21 14:49:00 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2021-04-21 19:08:45 +0000 |
commit | 4db2af7739d1fb1e248116e065b655ddd381b3bc (patch) | |
tree | 2dc5197b0563dd5c3c12cab3e3613d9e4911580e /test.py | |
parent | 30d4d2f8dba0d7cd29cb0eeee53883d73542b7cc (diff) |
Update test.py for python3, fix --gtest.
Test: test.py --host --gtest
Test: test.py -b --host --optimizing
Change-Id: I5dc707b13089a8b771a6f7c62004925050fd3a0c
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2017, The Android Open Source Project # @@ -51,7 +51,7 @@ if options.run_test or options.help_runner or not options.gtest: run_test_args.append(arg) test_runner_cmd = [testrunner] + run_test_args - print test_runner_cmd + print(test_runner_cmd) if subprocess.call(test_runner_cmd) or options.help_runner: sys.exit(1) @@ -62,9 +62,11 @@ if options.gtest or not options.run_test: if options.target or not options.host: build_target += ' test-art-target-gtest' - build_command = 'm -j' + str(options.n_threads) + ' ' + build_target - print build_command + build_command = ANDROID_BUILD_TOP + '/build/soong/soong_ui.bash --make-mode' + build_command += ' -j' + str(options.n_threads) + build_command += ' ' + build_target + print(build_command) if subprocess.call(build_command.split(), cwd=ANDROID_BUILD_TOP): - sys.exit(1) + sys.exit(1) sys.exit(0) |