From b04356b41244a530ca75302230858b957301ec37 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 14 Aug 2012 17:16:18 -0400 Subject: [PATCH] disable autotests by default --- .bin/cros-board | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.bin/cros-board b/.bin/cros-board index c53b04e..5ccfb14 100755 --- a/.bin/cros-board +++ b/.bin/cros-board @@ -16,6 +16,7 @@ ARG_DEV="/dev/sdc" ARG_DEV_USER=false ARG_PRETEND=false ARG_NOPKG=false +ARG_AUTOTEST=false ARG_VERBOSE=false ARG_TEST=false while [[ $# -ne 0 ]] ; do @@ -26,6 +27,7 @@ while [[ $# -ne 0 ]] ; do -v) ARG_VERBOSE=true;; -t) ARG_TEST=true;; --nousepkg) ARG_NOPKG=true;; + --autotest) ARG_AUTOTEST=true;; *) echo "unknown opt: $*"; exit 1;; esac shift @@ -50,7 +52,7 @@ run() { set -e } -tfe() { ($1 && echo $2 || :); } +tfe() { ($1 && echo $2 || echo $3); } mkdir -p "${IMAGES}" rm -f "${IMAGES}"/log.* @@ -72,8 +74,9 @@ run ./build_packages \ --board=${BOARD} \ --nowithdebug \ --skip_chroot_upgrade \ - $(tfe ${ARG_NOPKG} --nousepkg) \ - $(tfe ${ARG_TEST} --withtest) + $(tfe ${ARG_AUTOTEST} --{,no}withautotest) \ + $(tfe ${ARG_NOPKG} --{no,}usepkg) \ + $(tfe ${ARG_TEST} --{,no}withtest) BUILD_IMG="./build_image --board=${BOARD} --noenable_rootfs_verification $(tfe ${ARG_TEST} --test) dev" run ${BUILD_IMG} -- 2.39.5