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

Unified Diff: src/scripts/archive_build.sh

Issue 542131: Modifies archived build to include a test image in the zip file (Closed)
Patch Set: Created 10 years, 11 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 | « 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/archive_build.sh
diff --git a/src/scripts/archive_build.sh b/src/scripts/archive_build.sh
index 5881e0a7556b0bc64b96c85bbc11660fa00f65d7..3c2f20b0148ab91c222d7663f438dfefffead7d7 100755
--- a/src/scripts/archive_build.sh
+++ b/src/scripts/archive_build.sh
@@ -27,6 +27,7 @@ DEFINE_string zipname "image.zip" "Name of zip file to create."
DEFINE_boolean official_build $FLAGS_FALSE "Set CHROMEOS_OFFICIAL=1 for release builds."
DEFINE_string build_number "" \
"The build-bot build number (when called by buildbot only)." "b"
+DEFINE_boolean test_mod $FLAGS_TRUE "Modify image for testing purposes"
# Parse command line
FLAGS "$@" || exit 1
@@ -70,6 +71,15 @@ echo "archive to file: $ZIPFILE"
rm -rf "$OUTDIR"
mkdir -p "$OUTDIR"
+# Modify image for test if flag set.
+if [ $FLAGS_test_mod -eq $FLAGS_TRUE ]
+then
+ echo "Modifying image for test"
+ cp "${DEFAULT_FROM}/rootfs.image" "${DEFAULT_FROM}/rootfs_test.image"
+ . "${SCRIPTS_DIR}/mod_image_for_test.sh" --image rootfs_test.image
+ cd -
+fi
+
# Zip the build
echo "Compressing and archiving build..."
cd "$DEFAULT_FROM"
« 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