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

Unified Diff: mod_image_for_test.sh

Issue 6609016: Select factory image when --factory is given (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_image_for_test.sh
diff --git a/mod_image_for_test.sh b/mod_image_for_test.sh
index 822a293262469837388005b2d7d25b4eba9378f1..769941850bf33581c5d6ea999c08581ca68270e4 100755
--- a/mod_image_for_test.sh
+++ b/mod_image_for_test.sh
@@ -178,8 +178,10 @@ IMAGE_DIR="$(dirname "${FLAGS_image}")"
if [ ${FLAGS_inplace} -eq ${FLAGS_FALSE} ]; then
if [ ${FLAGS_factory} -eq ${FLAGS_TRUE} ]; then
TEST_PATHNAME="${IMAGE_DIR}/${CHROMEOS_FACTORY_TEST_IMAGE_NAME}"
+ typename="factory"
else
TEST_PATHNAME="${IMAGE_DIR}/${CHROMEOS_TEST_IMAGE_NAME}"
+ typename="test"
fi
if [ ! -f "${TEST_PATHNAME}" ] || \
[ ${FLAGS_force_copy} -eq ${FLAGS_TRUE} ] ; then
@@ -188,7 +190,7 @@ if [ ${FLAGS_inplace} -eq ${FLAGS_FALSE} ]; then
|| die "Cannot copy ${FLAGS_image} to test image"
FLAGS_image="${TEST_PATHNAME}"
else
- echo "Using cached test image"
+ echo "Using cached ${typename} image"
exit
fi
« no previous file with comments | « common.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698