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

Unified Diff: mod_image_for_test.sh

Issue 2834055: Update mod_image_for_test to support --fast option. (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: Created 10 years, 5 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: mod_image_for_test.sh
diff --git a/mod_image_for_test.sh b/mod_image_for_test.sh
index dba4b84d038210136fa0e84d01597a63cc43ab00..ea14659aa8585f1aaa5b713ee26284f7d9ba3848 100755
--- a/mod_image_for_test.sh
+++ b/mod_image_for_test.sh
@@ -32,6 +32,7 @@ DEFINE_string qualdb "" "Location of qualified component file" d
DEFINE_boolean yes $FLAGS_FALSE "Answer yes to all prompts" y
DEFINE_string build_root "/build" \
"The root location for board sysroots."
+DEFINE_boolean fast ${FLAGS_FALSE} "Call many emerges in parallel"
Nick Sanders 2010/07/20 07:30:16 can you add passthough to image_to_usb? not necess
# Parse command line
@@ -40,9 +41,10 @@ eval set -- "${FLAGS_ARGV}"
EMERGE_CMD="emerge"
EMERGE_BOARD_CMD="emerge-${FLAGS_board}"
-TOP_SCRIPTS_DIR="$(dirname $0)"
-if [ -e "${TOP_SCRIPTS_DIR}/.emerge" ]; then
- . "${TOP_SCRIPTS_DIR}/.emerge"
+if [ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]; then
+ echo "Using alternate emerge"
+ EMERGE_CMD="${SCRIPTS_DIR}/parallel_emerge"
+ EMERGE_BOARD_CMD="${EMERGE_CMD} --board=${FLAGS_board}"
fi
# No board, no default and no image set then we can't find the image
@@ -95,7 +97,7 @@ emerge_chromeos_test() {
# Determine the root dir for test packages.
ROOT_DEV_DIR="$ROOT_FS_DIR/usr/local"
- INSTALL_MASK="$INSTALL_MASK" $EMERGE_BOARD_CMD \
+ sudo INSTALL_MASK="$INSTALL_MASK" $EMERGE_BOARD_CMD \
--root="$ROOT_DEV_DIR" --root-deps=rdeps \
--usepkgonly chromeos-test $EMERGE_JOBS
}
« 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