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

Side by Side Diff: cros_run_vm_update

Issue 6736023: Install test scripts into chroot. (Closed) Base URL: http://git.chromium.org/git/crostestutils.git@master
Patch Set: Remove vm scripts from makefile Created 9 years, 8 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 | « cros_run_vm_test ('k') | outside_chroot_common.sh » ('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 . $(dirname "$(readlink -f "$0")")/outside_chroot_common.sh 2> /dev/null || 9 . $(dirname "$(readlink -f "$0")")/outside_chroot_common.sh || exit 1
10 SCRIPT_ROOT=/usr/lib/crosutils 10 . "${SCRIPT_ROOT}/common.sh" || exit 1
11 . "${SCRIPT_ROOT}/common.sh" ||
12 (echo "Unable to load common.sh" && false) ||
13 exit 1
14 . "${SCRIPT_ROOT}/lib/cros_vm_lib.sh" || die "Unable to load cros_vm_lib.sh" 11 . "${SCRIPT_ROOT}/lib/cros_vm_lib.sh" || die "Unable to load cros_vm_lib.sh"
15 12
16 DEFINE_string payload "" "Full name of the payload to update with." 13 DEFINE_string payload "" "Full name of the payload to update with."
17 DEFINE_string proxy_port "" \ 14 DEFINE_string proxy_port "" \
18 "Have the client request from this proxy instead of devserver." 15 "Have the client request from this proxy instead of devserver."
19 DEFINE_string src_image "" \ 16 DEFINE_string src_image "" \
20 "Create a delta update by passing in the image on the remote machine." 17 "Create a delta update by passing in the image on the remote machine."
21 DEFINE_string stateful_update_flag "" "Flags to pass to stateful update." s 18 DEFINE_string stateful_update_flag "" "Flags to pass to stateful update." s
22 DEFINE_string image "" "Path of the image to update to." u 19 DEFINE_string image "" "Path of the image to update to." u
23 DEFINE_string update_log "update_engine.log" \ 20 DEFINE_string update_log "update_engine.log" \
(...skipping 19 matching lines...) Expand all
43 fi 40 fi
44 41
45 if [ -n "${FLAGS_payload}" ]; then 42 if [ -n "${FLAGS_payload}" ]; then
46 IMAGE_ARGS="--payload=${FLAGS_payload}" 43 IMAGE_ARGS="--payload=${FLAGS_payload}"
47 fi 44 fi
48 45
49 if [ -n "${FLAGS_proxy_port}" ]; then 46 if [ -n "${FLAGS_proxy_port}" ]; then
50 IMAGE_ARGS="${IMAGE_ARGS} --proxy_port=${FLAGS_proxy_port}" 47 IMAGE_ARGS="${IMAGE_ARGS} --proxy_port=${FLAGS_proxy_port}"
51 fi 48 fi
52 49
53 "${SCRIPTS_DIR}/image_to_live.sh" \ 50 "${SCRIPT_ROOT}/image_to_live.sh" \
54 --for_vm \ 51 --for_vm \
55 --remote=127.0.0.1 \ 52 --remote=127.0.0.1 \
56 --ssh_port=${FLAGS_ssh_port} \ 53 --ssh_port=${FLAGS_ssh_port} \
57 --stateful_update_flag=${FLAGS_stateful_update_flag} \ 54 --stateful_update_flag=${FLAGS_stateful_update_flag} \
58 --src_image="${FLAGS_src_image}" \ 55 --src_image="${FLAGS_src_image}" \
59 --update_log="${FLAGS_update_log}" \ 56 --update_log="${FLAGS_update_log}" \
60 --update_url="${FLAGS_update_url}" \ 57 --update_url="${FLAGS_update_url}" \
61 --verify \ 58 --verify \
62 ${IMAGE_ARGS} 59 ${IMAGE_ARGS}
63 60
OLDNEW
« no previous file with comments | « cros_run_vm_test ('k') | outside_chroot_common.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698