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

Unified Diff: src/scripts/mod_image_for_test.sh

Issue 1818001: Force mod_image_for_test to run inside chroot if outside (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: Created 10 years, 8 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/mod_image_for_test.sh
diff --git a/src/scripts/mod_image_for_test.sh b/src/scripts/mod_image_for_test.sh
index 5bc1b2fbb0a05b700ba62db70d69f30bb3e6dbbf..69f68e2c84bede81bfa4d420dcfb22589e284d42 100755
--- a/src/scripts/mod_image_for_test.sh
+++ b/src/scripts/mod_image_for_test.sh
@@ -13,6 +13,11 @@
# Load functions and constants for chromeos-install
. "$(dirname "$0")/chromeos-common.sh"
+if [ ${INSIDE_CHROOT} -eq 0 ] ; then
+ "$(dirname "$0")/enter_chroot.sh" ./mod_image_for_test.sh "$@"
+ exit 0
+fi
+
get_default_board
DEFINE_string board "$DEFAULT_BOARD" "Board for which the image was built"
« 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