From 1b829905854dcb4ab394ccb8f884598fc95c2cc6 Mon Sep 17 00:00:00 2001 From: Zdenek Behan Date: Thu, 16 Sep 2010 14:31:34 -0700 Subject: [PATCH] run_remote_tests: destroy the with_spaces hack, use the --args instead of -a (which doesn't work) Change-Id: I8560a4400463d04b7a2441ce6fa9dc9cec834242 BUG= TEST=run_remote_tests.sh --args='-n 10', and make sure it gets all the way into autotest_run.sh Review URL: http://codereview.chromium.org/3402007 --- run_remote_tests.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/run_remote_tests.sh b/run_remote_tests.sh index dbae24e666..805c80966c 100755 --- a/run_remote_tests.sh +++ b/run_remote_tests.sh @@ -238,12 +238,6 @@ function main() { if [[ ${FLAGS_verbose} -eq $FLAGS_TRUE ]]; then verbose="--verbose" fi - local args=() - if [[ -n "${FLAGS_args}" ]]; then - local with_spaces="" - with_spaces=${FLAGS_args//,/ } - args=("-a" "${with_spaces}") - fi RAN_ANY_TESTS=${FLAGS_TRUE} @@ -263,11 +257,14 @@ function main() { control_file="${control_file:${#chrome_autotests}+1}" echo_color "yellow" ">>> Running chrome autotest " ${control_file} fi + if [[ -n "${FLAGS_args}" ]]; then + passthrough_args="--args=${FLAGS_args}" + fi ${enter_chroot} ${autotest} --board "${FLAGS_board}" -m "${FLAGS_remote}" \ --ssh-port ${FLAGS_ssh_port} \ "${option}" "${control_file}" -r "${results_dir}" ${verbose} \ - "${args[@]}" + "${passthrough_args}" done echo ""