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

Unified Diff: mod_image_for_test.sh

Issue 6527001: Remove old logic ... and don't needlessly modifiy dev image. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Remove debug info 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
« archive_build.sh ('K') | « 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 96009799ce74ab3dcba8ddd5506c733b80295dfd..b9f123fb0aa51536231f72414bacef3d8b18a853 100755
--- a/mod_image_for_test.sh
+++ b/mod_image_for_test.sh
@@ -54,11 +54,11 @@ DEFINE_boolean fast ${DEFAULT_FAST} "Call many emerges in parallel"
DEFINE_boolean inplace $FLAGS_TRUE \
"Modify/overwrite the image ${CHROMEOS_IMAGE_NAME} in place. \
Otherwise the image will be copied to ${CHROMEOS_TEST_IMAGE_NAME} \
-if needed, and modified there"
+(or ${CHROMEOS_FACTORY_TEST_IMAGE_NAME} for --factory) if needed, and \
+modified there"
DEFINE_boolean force_copy ${FLAGS_FALSE} \
"Always rebuild test image if --noinplace"
-
# Parse command line
FLAGS "$@" || exit 1
eval set -- "${FLAGS_ARGV}"
@@ -182,7 +182,11 @@ IMAGE_DIR="$(dirname "${FLAGS_image}")"
# Copy the image to a test location if required
if [ ${FLAGS_inplace} -eq ${FLAGS_FALSE} ]; then
- TEST_PATHNAME="${IMAGE_DIR}/${CHROMEOS_TEST_IMAGE_NAME}"
+ if [ ${FLAGS_factory} -eq ${FLAGS_TRUE} ]; then
+ TEST_PATHNAME="${IMAGE_DIR}/${CHROMEOS_FACTORY_TEST_IMAGE_NAME}"
+ else
+ TEST_PATHNAME="${IMAGE_DIR}/${CHROMEOS_TEST_IMAGE_NAME}"
+ fi
if [ ! -f "${TEST_PATHNAME}" ] || \
[ ${FLAGS_force_copy} -eq ${FLAGS_TRUE} ] ; then
echo "Creating test image from original..."
« archive_build.sh ('K') | « common.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698