mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 22:12:10 +01:00
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
This commit is contained in:
parent
30b64cab3f
commit
1b82990585
@ -238,12 +238,6 @@ function main() {
|
|||||||
if [[ ${FLAGS_verbose} -eq $FLAGS_TRUE ]]; then
|
if [[ ${FLAGS_verbose} -eq $FLAGS_TRUE ]]; then
|
||||||
verbose="--verbose"
|
verbose="--verbose"
|
||||||
fi
|
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}
|
RAN_ANY_TESTS=${FLAGS_TRUE}
|
||||||
|
|
||||||
@ -263,11 +257,14 @@ function main() {
|
|||||||
control_file="${control_file:${#chrome_autotests}+1}"
|
control_file="${control_file:${#chrome_autotests}+1}"
|
||||||
echo_color "yellow" ">>> Running chrome autotest " ${control_file}
|
echo_color "yellow" ">>> Running chrome autotest " ${control_file}
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${FLAGS_args}" ]]; then
|
||||||
|
passthrough_args="--args=${FLAGS_args}"
|
||||||
|
fi
|
||||||
|
|
||||||
${enter_chroot} ${autotest} --board "${FLAGS_board}" -m "${FLAGS_remote}" \
|
${enter_chroot} ${autotest} --board "${FLAGS_board}" -m "${FLAGS_remote}" \
|
||||||
--ssh-port ${FLAGS_ssh_port} \
|
--ssh-port ${FLAGS_ssh_port} \
|
||||||
"${option}" "${control_file}" -r "${results_dir}" ${verbose} \
|
"${option}" "${control_file}" -r "${results_dir}" ${verbose} \
|
||||||
"${args[@]}"
|
"${passthrough_args}"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user