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

Unified Diff: bin/cros_start_vm

Issue 4647001: crosutils: Add vnc view of tests and running multiple tests for VM tests (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Respond to sosa review 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_vm_test ('k') | lib/cros_vm_lib.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cros_start_vm
diff --git a/bin/cros_start_vm b/bin/cros_start_vm
index 3ecced9f6967ac4b973aad830e8758c5b50b4dd5..63079203495a0ef49b708a787fda7a1cf4389943 100755
--- a/bin/cros_start_vm
+++ b/bin/cros_start_vm
@@ -10,6 +10,10 @@
. "$(dirname $0)/../lib/cros_vm_lib.sh"
. "$(dirname "$0")/../lib/cros_vm_constants.sh"
+get_default_board
+
+DEFINE_string board "${DEFAULT_BOARD}" \
+ "Board for VM image (unnecessary if path given)"
DEFINE_string image_path "" "Full path of the VM image"
set -e
@@ -20,7 +24,8 @@ eval set -- "${FLAGS_ARGV}"
# Use latest if not specified.
if [ -z "${FLAGS_image_path}" ]; then
- LATEST_IMAGE="$(${SCRIPTS_DIR}/get_latest_image.sh)/${DEFAULT_QEMU_IMAGE}"
+ LATEST_IMAGE="$(${SCRIPTS_DIR}/get_latest_image.sh \
+ --board=${FLAGS_board})/${DEFAULT_QEMU_IMAGE}"
info "Using latest vm image ${LATEST_IMAGE}"
FLAGS_image_path=${LATEST_IMAGE}
fi
« no previous file with comments | « bin/cros_run_vm_test ('k') | lib/cros_vm_lib.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698