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

Unified Diff: src/scripts/mod_image_for_test.sh

Issue 462043: By default use the most recently built image when modifying an image for test. (Closed)
Patch Set: Created 11 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/mod_image_for_test.sh
diff --git a/src/scripts/mod_image_for_test.sh b/src/scripts/mod_image_for_test.sh
index 8827b2e4812d63200188cf0ca600c2e40dd04ea7..2aa1dd81a0d0cedfd9c1358cbc9a2f681a0b9da6 100755
--- a/src/scripts/mod_image_for_test.sh
+++ b/src/scripts/mod_image_for_test.sh
@@ -10,7 +10,9 @@
# The path to common.sh should be relative to your script's location.
. "$(dirname "$0")/common.sh"
-DEFINE_string image "rootfs.image" \
+IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images"
+DEFAULT_IMAGE="${IMAGES_DIR}/$(ls -t $IMAGES_DIR 2>&-| head -1)/rootfs.image"
petkov 2009/12/07 22:14:11 Does it make sense to use the get_latest_image.sh
+DEFINE_string image "$DEFAULT_IMAGE" \
"Location of the rootfs raw image file"
# Parse command line
@@ -61,6 +63,8 @@ LOOP_DEV=`sudo losetup -f`
sudo losetup "${LOOP_DEV}" "${FLAGS_image}"
sudo mount "${LOOP_DEV}" "${ROOT_FS_DIR}"
+echo "Modifying image ${FLAGS_image} for test..."
+
# Run build steps for modify for test
sudo mkdir -p "${ROOT_FS_DIR}/modify_build"
scripts_dir="${GCLIENT_ROOT}/src/scripts/mod_for_test_scripts"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698