From 054f8b67516d05fdb5d7c4908f0d6c6dfbfe8320 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 13 Sep 2012 18:49:02 -0400 Subject: [PATCH] fix test handling --- .bin/cros-board | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}" -- 2.39.5