Add --image support to run_remote_tests.
Functionally equivalent to doing a image_to_live with an update_url followed
by a run_remote_tests run.
Allows for easier testing of issues with a given image. As well as
testing of the Autotest update pipeline.
BUG=none
TEST=Ran run_remote_tests.
Change-Id: I7eb7c7eec2ce0d9b155591c6222585a07f5e4868
Reviewed-on: http://gerrit.chromium.org/gerrit/802
Tested-by: Eric Li(李咏竹) <ericli@chromium.org>
Reviewed-by: Eric Li(李咏竹) <ericli@chromium.org>
diff --git a/run_remote_tests.sh b/run_remote_tests.sh
index 8b881d5..d39ae0c 100755
--- a/run_remote_tests.sh
+++ b/run_remote_tests.sh
@@ -21,6 +21,7 @@
DEFINE_integer iterations 1 "Iterations to run every top level test" i
DEFINE_string results_dir_root "" "alternate root results directory"
DEFINE_boolean verbose ${FLAGS_FALSE} "Show verbose autoserv output" v
+DEFINE_string update_url "" "Full url of an update image."
DEFINE_boolean use_emerged ${FLAGS_FALSE} \
"Force use of emerged autotest packages"
@@ -292,6 +293,11 @@
verbose="--verbose"
fi
+ local image=""
+ if [[ -n "${FLAGS_update_url}" ]]; then
+ image="--image ${FLAGS_update_url}"
+ fi
+
RAN_ANY_TESTS=${FLAGS_TRUE}
# Remove chrome autotest location prefix from control_file if needed
@@ -302,7 +308,7 @@
fi
local autoserv_args="-m ${FLAGS_remote} --ssh-port ${FLAGS_ssh_port} \
- ${option} ${control_file} -r ${results_dir} ${verbose}"
+ ${image} ${option} ${control_file} -r ${results_dir} ${verbose}"
if [ -n "${FLAGS_args}" ]; then
autoserv_args="${autoserv_args} --args=${FLAGS_args}"
fi