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

Unified Diff: build_autotest.sh

Issue 3148016: Make sync_build_test and build_autotest support workon. (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Respond to review Created 10 years, 4 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 | sync_build_test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_autotest.sh
diff --git a/build_autotest.sh b/build_autotest.sh
index 5614a8107749d987c77ba7aa516717e3cfaba352..78d7dc6fe0f705750eaf050f27565a9243702a0e 100755
--- a/build_autotest.sh
+++ b/build_autotest.sh
@@ -15,5 +15,18 @@
get_default_board
-./autotest --build=all --board="${DEFAULT_BOARD}" $@
+DEFINE_string board "$DEFAULT_BOARD" \
+ "The board for which you are building autotest"
+
+FLAGS "$@" || exit 1
+
+if [[ -n "${CROS_WORKON_SRCROOT}" ]]; then
+ if [[ -z "${FLAGS_board}" ]]; then
+ setup_board_warning
+ exit 1
+ fi
+ emerge-${FLAGS_board} autotest-tests
+else
+ ./autotest --noprompt --build=all --board="${DEFAULT_BOARD}" $@
+fi
« no previous file with comments | « no previous file | sync_build_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698