mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-24 20:11:59 +01:00
build: Re-hide pointless question in image_to_usb.sh --test_image.
Undoes a change from 5c3b457f. Hardcoding "--yes" in the call to mod_image_for_test.sh instead of inheriting image_to_usb.sh's "yes" was intentional. The user may not pass --yes to image_to_usb.sh since they want to confirm that they're writing to the correct device, but they already told us that they want the image to be modified for test with --test_image, so there's no reason to ask about it again. BUG=none TEST=ran it Review URL: http://codereview.chromium.org/1736005
This commit is contained in:
parent
565b11316a
commit
89b029c7c0
@ -113,15 +113,12 @@ if [ ${FLAGS_test_image} -eq ${FLAGS_TRUE} ] ; then
|
|||||||
if [ ${FLAGS_factory} -eq ${FLAGS_TRUE} ] ; then
|
if [ ${FLAGS_factory} -eq ${FLAGS_TRUE} ] ; then
|
||||||
FACTORY_ARGS="--factory"
|
FACTORY_ARGS="--factory"
|
||||||
fi
|
fi
|
||||||
# Check for yes
|
|
||||||
if [ ${FLAGS_yes} -eq ${FLAGS_TRUE} ] ; then
|
|
||||||
YES="--yes"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
# Modify it. Pass --yes so that mod_image_for_test.sh won't ask us if we
|
||||||
# Modify it.
|
# really want to modify the image; the user gave their assent already with
|
||||||
|
# --test-image and the original image is going to be preserved.
|
||||||
"${SCRIPTS_DIR}/mod_image_for_test.sh" --image \
|
"${SCRIPTS_DIR}/mod_image_for_test.sh" --image \
|
||||||
"${FLAGS_from}/chromiumos_test_image.bin" ${FACTORY_ARGS} ${YES}
|
"${FLAGS_from}/chromiumos_test_image.bin" ${FACTORY_ARGS} --yes
|
||||||
echo "Done with mod_image_for_test."
|
echo "Done with mod_image_for_test."
|
||||||
else
|
else
|
||||||
echo "Using cached test image."
|
echo "Using cached test image."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user