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

Unified Diff: src/scripts/build_autotest.sh

Issue 604013: Adds ebuild support to build_autotest (Closed)
Patch Set: Doc 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/build_autotest.sh
diff --git a/src/scripts/build_autotest.sh b/src/scripts/build_autotest.sh
index 540c3857adf885f717a240e1958f93618b606ee2..59ca8baeed0ce3a8b7094f5a7c1be8d61c70931b 100755
--- a/src/scripts/build_autotest.sh
+++ b/src/scripts/build_autotest.sh
@@ -23,6 +23,8 @@ DEFAULT_CONTROL=client/site_tests/setup/control
DEFINE_string control "${DEFAULT_CONTROL}" \
"Setup control file -- path relative to the destination autotest directory" c
+DEFINE_string board "" \
+ "Board name for the target you are building if using portage build system"
# More useful help
FLAGS_HELP="usage: $0 [flags]"
@@ -36,6 +38,13 @@ AUTOTEST_SRC="${GCLIENT_ROOT}/src/third_party/autotest/files"
# Destination in chroot to install autotest.
AUTOTEST_DEST="/usr/local/autotest"
+# If new build system flag passed, use ebuild and exit
+if [ -n "${FLAGS_board}" ]; then
+ sudo GCLIENT_ROOT="${GCLIENT_ROOT}" FLAGS_control=${FLAGS_control} \
+ "emerge-${FLAGS_board}" -a chromeos-base/autotest
+ exit 0
+fi
+
# Copy a local "installation" of autotest into the chroot, to avoid
# polluting the src dir with tmp files, results, etc.
update_chroot_autotest "${CHROOT_TRUNK_DIR}/src/third_party/autotest/files" \
« 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