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

Unified Diff: src/scripts/autotest_lib.sh

Issue 606054: Change run_remote_tests from portage build env. (Closed)
Patch Set: patch 6, fix merge problem. 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/build_autotest.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/autotest_lib.sh
diff --git a/src/scripts/autotest_lib.sh b/src/scripts/autotest_lib.sh
index c57096807c834d08961ab90edd9dd66991909e64..fe76cb766397ec403e4475760b3f88c8c761454b 100644
--- a/src/scripts/autotest_lib.sh
+++ b/src/scripts/autotest_lib.sh
@@ -4,6 +4,35 @@
#
# Provides common commands for dealing running/building autotest
+DEFINE_string board "" "The board for which you are building autotest"
+
+function check_board() {
+ local board_names=""
+ local index=1
+ local found=0
+ for board in ../overlays/overlay-*
+ do
+ board_names[index]=${board:20}
+ index+=1
+ if [ "${FLAGS_board}" == "${board:20}" ]
+ then
+ found=1
+ fi
+ done
+
+ if [ ${found} -eq 0 ]
+ then
+ echo "You are required to specify a supported board from the command line."
+ echo "Supported boards are:"
+ for board in ${board_names[@]}
+ do
+ echo ${board}
+ done
+ exit 0
+ fi
+}
+
+
# Populates the chroot's /usr/local/autotest/$FLAGS_board directory based on
# the given source directory.
# args:
« no previous file with comments | « no previous file | src/scripts/build_autotest.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698