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

Side by Side Diff: bin/cros_run_vm_update

Issue 6672007: Add logs for update_engine and image_to_live to test artifacts. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Fix bug in RunCommand Created 9 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « bin/au_test_harness/vm_au_worker.py ('k') | lib/cros_build_lib.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 # Updates an existing vm image with another image. 7 # Updates an existing vm image with another image.
8 8
9 # --- BEGIN COMMON.SH BOILERPLATE --- 9 # --- BEGIN COMMON.SH BOILERPLATE ---
10 # Load common CrOS utilities. Inside the chroot this file is installed in 10 # Load common CrOS utilities. Inside the chroot this file is installed in
(...skipping 18 matching lines...) Expand all
29 29
30 . "${SCRIPT_ROOT}/lib/cros_vm_lib.sh" || die "Unable to load cros_vm_lib.sh" 30 . "${SCRIPT_ROOT}/lib/cros_vm_lib.sh" || die "Unable to load cros_vm_lib.sh"
31 31
32 DEFINE_string payload "" "Full name of the payload to update with." 32 DEFINE_string payload "" "Full name of the payload to update with."
33 DEFINE_string proxy_port "" \ 33 DEFINE_string proxy_port "" \
34 "Have the client request from this proxy instead of devserver." 34 "Have the client request from this proxy instead of devserver."
35 DEFINE_string src_image "" \ 35 DEFINE_string src_image "" \
36 "Create a delta update by passing in the image on the remote machine." 36 "Create a delta update by passing in the image on the remote machine."
37 DEFINE_string stateful_update_flag "" "Flags to pass to stateful update." s 37 DEFINE_string stateful_update_flag "" "Flags to pass to stateful update." s
38 DEFINE_string image "" "Path of the image to update to." u 38 DEFINE_string image "" "Path of the image to update to." u
39 DEFINE_string update_log "update_engine.log" \
40 "Path to log for the update_engine."
39 DEFINE_string update_url "" "Full url of an update image." 41 DEFINE_string update_url "" "Full url of an update image."
40 DEFINE_string vm_image_path "" "Path of the VM image to update from." v 42 DEFINE_string vm_image_path "" "Path of the VM image to update from." v
41 43
42 set -e 44 set -e
43 45
44 # Parse command line. 46 # Parse command line.
45 FLAGS "$@" || exit 1 47 FLAGS "$@" || exit 1
46 eval set -- "${FLAGS_ARGV}" 48 eval set -- "${FLAGS_ARGV}"
47 49
48 [ -n "${FLAGS_vm_image_path}" ] || \ 50 [ -n "${FLAGS_vm_image_path}" ] || \
(...skipping 14 matching lines...) Expand all
63 if [ -n "${FLAGS_proxy_port}" ]; then 65 if [ -n "${FLAGS_proxy_port}" ]; then
64 IMAGE_ARGS="${IMAGE_ARGS} --proxy_port=${FLAGS_proxy_port}" 66 IMAGE_ARGS="${IMAGE_ARGS} --proxy_port=${FLAGS_proxy_port}"
65 fi 67 fi
66 68
67 "${SCRIPTS_DIR}/image_to_live.sh" \ 69 "${SCRIPTS_DIR}/image_to_live.sh" \
68 --for_vm \ 70 --for_vm \
69 --remote=127.0.0.1 \ 71 --remote=127.0.0.1 \
70 --ssh_port=${FLAGS_ssh_port} \ 72 --ssh_port=${FLAGS_ssh_port} \
71 --stateful_update_flag=${FLAGS_stateful_update_flag} \ 73 --stateful_update_flag=${FLAGS_stateful_update_flag} \
72 --src_image="${FLAGS_src_image}" \ 74 --src_image="${FLAGS_src_image}" \
75 --update_log="${FLAGS_update_log}" \
73 --update_url="${FLAGS_update_url}" \ 76 --update_url="${FLAGS_update_url}" \
74 --verify \ 77 --verify \
75 ${IMAGE_ARGS} 78 ${IMAGE_ARGS}
76 79
OLDNEW
« no previous file with comments | « bin/au_test_harness/vm_au_worker.py ('k') | lib/cros_build_lib.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698