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

Unified Diff: src/scripts/archive_build.sh

Issue 660189: Changes to enable buildbot to build autotests and package them (Closed)
Patch Set: Created 10 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 | « no previous file | src/scripts/run_remote_tests.sh » ('j') | 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 b4a0951a733099b21919b62ea9186b7e278a3b60..3259bb129934597351a5abd004805ec6d2e0dc5d 100755
--- a/src/scripts/archive_build.sh
+++ b/src/scripts/archive_build.sh
@@ -22,6 +22,8 @@ DEFAULT_FROM="${IMAGES_DIR}/$DEFAULT_BOARD/$(ls -t1 \
# Flags
DEFINE_string board "$DEFAULT_BOARD" \
"The board to build packages for."
+DEFINE_string chroot "$DEFAULT_CHROOT_DIR" \
+ "The chroot of the build to archive."
DEFINE_string from "$DEFAULT_FROM" \
"Directory to archive"
DEFINE_string to "$DEFAULT_TO" "Directory of build archive"
@@ -94,6 +96,9 @@ then
cp "${FLAGS_from}/rootfs.image" "${FLAGS_from}/rootfs_test.image"
"${SCRIPTS_DIR}/mod_image_for_test.sh" --board $FLAGS_board --yes --image \
"${FLAGS_from}/rootfs_test.image"
+ cd "${FLAGS_chroot}/build/${FLAGS_board}/usr/local"
+ echo "Archiving autotest build artifacts"
+ tar cjf "${FLAGS_from}/autotest.tar.bz2" autotest
fi
# Zip the build
« no previous file with comments | « no previous file | src/scripts/run_remote_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698