]> git.wh0rd.org Git - home.git/commitdiff
fix test handling
authorMike Frysinger <vapier@gentoo.org>
Thu, 13 Sep 2012 22:49:02 +0000 (18:49 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 13 Sep 2012 22:49:02 +0000 (18:49 -0400)
.bin/cros-board

index 30603da89010153b1be3efa89d75eafc0ce4c668..301b9e55523819d92a8b989f31d509cb2e4be48c 100755 (executable)
@@ -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}"