From b38b3c81bcd609f6ae51637e0dceb09d352d2077 Mon Sep 17 00:00:00 2001 From: Daniel Kurtz Date: Wed, 15 Dec 2010 10:31:11 -0800 Subject: [PATCH] run_remote_tests.sh: pass multiple arguments to autoserv Change-Id: I7f54a0e078d0c7eb70e0a614bbb991cd372dec60 BUG=chromium-os:9841 TEST= ## Test with these 2 scripts ./bin/cros_run_wifi_tests.sh --cell 3 MatFunc --args "test_pat=000*" ## --and-- ./run_remote_tests.sh --remote=${DUT} --args="test_pat=000* config_file=wifi_testbed_chromelab server_addr=${SERVER} router_addr=${ROUTER}" MatFunc Review URL: http://codereview.chromium.org/5821001 --- run_remote_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_remote_tests.sh b/run_remote_tests.sh index 2a54456f73..9cb1318172 100755 --- a/run_remote_tests.sh +++ b/run_remote_tests.sh @@ -268,7 +268,7 @@ function main() { local autoserv_args="-m ${FLAGS_remote} --ssh-port ${FLAGS_ssh_port} \ ${option} ${control_file} -r ${results_dir} ${verbose}" if [ -n "${FLAGS_args}" ]; then - autoserv_args="${autoserv_args} -a \"${FLAGS_args}\"" + autoserv_args="${autoserv_args} --args=${FLAGS_args}" fi sudo chmod a+w ./server/{tests,site_tests} @@ -291,5 +291,5 @@ function main() { print_time_elapsed } -restart_in_chroot_if_needed $* +restart_in_chroot_if_needed "$@" main "$@"