From: Mike Frysinger Date: Thu, 13 Sep 2012 22:49:02 +0000 (-0400) Subject: fix test handling X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=054f8b67516d05fdb5d7c4908f0d6c6dfbfe8320;p=home.git fix test handling --- diff --git a/.bin/cros-board b/.bin/cros-board index 30603da..301b9e5 100755 --- a/.bin/cros-board +++ b/.bin/cros-board @@ -28,6 +28,7 @@ while [[ $# -ne 0 ]] ; do -t) ARG_TEST=true;; --nousepkg) ARG_NOPKG=true;; --autotest) ARG_AUTOTEST=true;; + -h) exec sed -n '/^while/,/^done/p' "$0";; *) echo "unknown opt: $*"; exit 1;; esac shift @@ -77,7 +78,7 @@ run ./build_packages \ $(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" +BUILD_IMG="./build_image --board=${BOARD} --noenable_rootfs_verification $(tfe ${ARG_TEST} test) dev" run ${BUILD_IMG} IMG_TO_USB="./image_to_usb.sh --board=${BOARD} -y --to=${ARG_DEV}"