From 7470bca0279ee780388d8995c59f4264dfe3ba42 Mon Sep 17 00:00:00 2001 From: Darin Petkov Date: Thu, 28 Jan 2010 15:21:17 -0800 Subject: [PATCH] Provide an option to allow custom/local setup control file. Review URL: http://codereview.chromium.org/553142 --- build_autotest.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build_autotest.sh b/build_autotest.sh index bf0e521135..632eb608b2 100755 --- a/build_autotest.sh +++ b/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}