if ${ARG_CLEAN} || [[ ! -d ${BUILD} ]] ; then
run sudo rm -rf "${BUILD}"
run setup_board --board=${BOARD} --skip-chroot-upgrade
- if [ $? -ne 0 ] ; then
+ if [[ $? -ne 0 ]] ; then
run sudo rm -rf "${BUILD}"
exit 1
fi
--nowithdebug \
--nowithrevdeps \
--skip-chroot-upgrade \
+ --autosetgov \
$(tfe ${ARG_AUTOTEST} --{,no}withautotest) \
$(tfe ${ARG_FACTORY} --{,no}withfactory) \
$(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 base)"
run ${BUILD_IMG}
IMG_TO_USB="cros flash --yes usb://${ARG_DEV} xbuddy://local/${BOARD}/latest/dev"