mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
Modifies archived build to include a test image in the zip file
Review URL: http://codereview.chromium.org/542131
This commit is contained in:
parent
57d2a6bd12
commit
8a09a05ef0
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user