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
This commit is contained in:
Daniel Kurtz 2010-12-15 10:31:11 -08:00
parent 27c473d6c7
commit b38b3c81bc

View File

@ -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 "$@"