Make mod_image_for_test work with default args. Before the GPT change, by default mod_image_for_test would modify the result of your build.

Review URL: http://codereview.chromium.org/1572012
This commit is contained in:
Ken Mixter 2010-04-01 10:08:11 -07:00
parent 6dcea16492
commit ce175d58d6

View File

@ -36,7 +36,7 @@ fi
# We have a board name but no image set. Use image at default location
if [ -z $FLAGS_image ] ; then
IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images/${FLAGS_board}"
FILENAME="chromiumos_test_image.bin"
FILENAME="chromiumos_image.bin"
FLAGS_image="${IMAGES_DIR}/$(ls -t $IMAGES_DIR 2>&-| head -1)/${FILENAME}"
fi