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

Unified Diff: src/scripts/build_autotest.sh

Issue 553142: Provide an option to allow custom/local setup control file. (Closed)
Patch Set: Fix line length and wording. Created 10 years, 11 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 bf0e521135cf0778dd29ad9582390167f1610553..632eb608b21e9815a98469ee510ed894b3668bf2 100755
--- a/src/scripts/build_autotest.sh
+++ b/src/scripts/build_autotest.sh
@@ -18,6 +18,11 @@
# Script must be run inside the chroot
assert_inside_chroot
+DEFAULT_CONTROL=client/site_tests/setup/control
+
+DEFINE_string control "${DEFAULT_CONTROL}" \
+ "Setup control file -- path relative to the destination autotest directory" c
+
# More useful help
FLAGS_HELP="usage: $0 [flags]"
@@ -32,7 +37,7 @@ AUTOTEST_DEST="/usr/local/autotest"
# Copy a local "installation" of autotest into the chroot, to avoid
# polluting the src dir with tmp files, results, etc.
-echo -n "Installing Autotest... "
+echo "Installing Autotest..."
sudo mkdir -p ${AUTOTEST_DEST}
sudo chmod 777 ${AUTOTEST_DEST}
cd ${CHROOT_TRUNK_DIR}/src/third_party/autotest/files
@@ -61,4 +66,5 @@ touch __init__.py
export GCLIENT_ROOT
# run the magic test setup script.
-client/bin/autotest client/site_tests/setup/control
+echo "Building tests using ${FLAGS_control}..."
+client/bin/autotest ${FLAGS_control}
« 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