summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorMartin Stjernholm <mast@google.com>2019-08-09 13:17:45 +0100
committerTreehugger Robot <treehugger-gerrit@google.com>2019-08-09 18:14:51 +0000
commit411a6de63982d1e6ec16e11141725ff95cbdfab9 (patch)
treef091c077c5fb4fc37cd47c36b46a7a42263c10a1 /test.py
parentd5ec2a1321106a4bc56cba197dfbc538c09b4ae9 (diff)
Use m instead of make.
make is deprecated and is now a bash-only function. Test: art/test.py --host --64 --optimizing Test: cd art && ./test.py --host --64 --optimizing Change-Id: I5ee4a8735e57ac404365b1e5fd17d615f0be918a
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/test.py b/test.py
index bc15736bd8..9e54363d50 100755
--- a/test.py
+++ b/test.py
@@ -62,14 +62,9 @@ if options.gtest or not options.run_test:
if options.target or not options.host:
build_target += ' test-art-target-gtest'
- build_command = 'make'
- build_command += ' -j' + str(options.n_threads)
- build_command += ' -C ' + ANDROID_BUILD_TOP
- build_command += ' ' + build_target
-
+ build_command = 'm -j' + str(options.n_threads) + ' ' + build_target
print build_command
-
- if subprocess.call(build_command.split()):
+ if subprocess.call(build_command.split(), cwd=ANDROID_BUILD_TOP):
sys.exit(1)
sys.exit(0)