Add missing spaces in constructing args
We were missing a few spaces in some argument strings. This could
cause the testrunner to fail if it is used with a --run-test-option or
with multiple target options.
Test: ./test/testrunner/testrunner.py --host --jvm
Test: ./test/testrunner/testrunner.py --host --run-test-option='--with-agent libtifast.so=MethodEntry,MethodExit'
Change-Id: I8b4330c252e2f13f4591bbeadef3532ca7b31d06
diff --git a/test/testrunner/testrunner.py b/test/testrunner/testrunner.py
index 067e678..e8d4290 100755
--- a/test/testrunner/testrunner.py
+++ b/test/testrunner/testrunner.py
@@ -328,7 +328,7 @@
if gdb_arg:
options_all += ' --gdb-arg ' + gdb_arg
- options_all += ' '.join(run_test_option)
+ options_all += ' ' + ' '.join(run_test_option)
if runtime_option:
for opt in runtime_option:
@@ -1010,11 +1010,11 @@
if build:
build_targets = ''
if 'host' in _user_input_variants['target']:
- build_targets += 'test-art-host-run-test-dependencies'
+ build_targets += 'test-art-host-run-test-dependencies '
if 'target' in _user_input_variants['target']:
- build_targets += 'test-art-target-run-test-dependencies'
+ build_targets += 'test-art-target-run-test-dependencies '
if 'jvm' in _user_input_variants['target']:
- build_targets += 'test-art-host-run-test-dependencies'
+ build_targets += 'test-art-host-run-test-dependencies '
build_command = 'make'
build_command += ' DX='
build_command += ' -j'