[crostestutils] Add a --fast flag to run_remote_tests.
This flag was added to test_that, and a similar copy can/should exist
for run_remote_tests.
TEST=ran run_remote_tests with --fast
BUG=chromium:258509
Change-Id: If566dd687373591bb36fd83c344e0817fd8a7748
Reviewed-on: https://gerrit.chromium.org/gerrit/61474
Reviewed-by: Alex Miller <milleral@chromium.org>
Tested-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Alex Miller <milleral@chromium.org>
diff --git a/run_remote_tests.sh b/run_remote_tests.sh
index 99a802f..07f37c8 100755
--- a/run_remote_tests.sh
+++ b/run_remote_tests.sh
@@ -37,6 +37,8 @@
"Treat Chrome crashes as non-fatal."
DEFINE_boolean allow_offline_remote ${FLAGS_FALSE} \
"Proceed with testing even if remote is offline; useful when using servo"
+DEFINE_boolean fast ${FLAGS_FALSE} \
+ "Drop expensive autoserv features not needed for desk use"
# The prefix to look for in an argument that determines we're talking about a
# new-style suite.
@@ -664,10 +666,16 @@
control_file="${profiled_control_file}"
fi
+ if [ "${FLAGS_fast}" -eq "${FLAGS_FALSE}" ]; then
+ fast_flags=""
+ else
+ fast_flags="--no_collect_crashinfo --disable_sysinfo"
+ fi
+
local autoserv_args="-m ${FLAGS_remote} --ssh-port ${FLAGS_ssh_port} \
${image} ${option} ${control_file} -r ${results_dir} ${verbose} \
${FLAGS_label:+ -l $FLAGS_label} \
- --test-retry=${test_retry_value}"
+ --test-retry=${test_retry_value} ${fast_flags}"
sudo chmod a+w ./server/{tests,site_tests}