Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: bin/cros_run_vm_test

Issue 4669007: [crosutils] Propagate use_emerged flag up from run_remote_tests (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: remove common.sh Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/cros_run_parallel_vm_tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cros_run_vm_test
diff --git a/bin/cros_run_vm_test b/bin/cros_run_vm_test
index 6f5ded2f72d0cba53f66a77bc96b45c04abf172a..fbbee23c7cbc2373d4c112a6e3d8c4be64f01aad 100755
--- a/bin/cros_run_vm_test
+++ b/bin/cros_run_vm_test
@@ -15,10 +15,12 @@ MAX_RETRIES=3
get_default_board
DEFINE_string board "$DEFAULT_BOARD" \
- "The board for which you built autotest."
+ "The board for which you built autotest." b
DEFINE_string image_path "" "Full path of the VM image"
DEFINE_string results_dir_root "" "alternate root results directory"
DEFINE_string test_case "" "Name of the test case to run"
+DEFINE_boolean use_emerged ${FLAGS_FALSE} \
+ "Force use of emerged autotest packages"
set -e
@@ -44,6 +46,11 @@ if [ -z "${FLAGS_test_case}" ] && [ -z "${FLAGS_ARGV}" ]; then
die "You must specify a test case."
fi
+USE_EMERGED=
+if [[ ${FLAGS_use_emerged} -eq ${FLAGS_TRUE} ]]; then
+ USE_EMERGED="--use_emerged"
+fi
+
tests=( )
[ -n "${FLAGS_test_case}" ] && tests=( "${FLAGS_test_case}" )
for test in ${FLAGS_ARGV}; do
@@ -59,4 +66,5 @@ retry_until_ssh ${MAX_RETRIES}
--ssh_port=${FLAGS_ssh_port} \
--remote=127.0.0.1 \
--results_dir_root="${FLAGS_results_dir_root}" \
+ ${USE_EMERGED} \
"${tests[@]}"
« no previous file with comments | « bin/cros_run_parallel_vm_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698