Move warning message for mod_image_for_test before actual library call.

Users of other calling scripts that no-op in this scripts are seeing
the warning message incorrectly. Moving this message further down
avoids this issue.

BUG=None
TEST=Visual. Also using to test unified commit queue.

Change-Id: I7bc227f37b26bcedbdb8214286a3f8646ddb610c
Reviewed-on: https://gerrit.chromium.org/gerrit/24369
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
Commit-Ready: Chris Sosa <sosa@chromium.org>
This commit is contained in:
Chris Sosa 2012-06-03 22:51:30 -07:00 committed by Gerrit
parent 6e52ff1f3d
commit 0e1709f295

View File

@ -49,9 +49,6 @@ switch_to_strict_mode
. "${BUILD_LIBRARY_DIR}/mount_gpt_util.sh" || exit 1 . "${BUILD_LIBRARY_DIR}/mount_gpt_util.sh" || exit 1
. "${BUILD_LIBRARY_DIR}/test_image_util.sh" || exit 1 . "${BUILD_LIBRARY_DIR}/test_image_util.sh" || exit 1
warn "THIS SCRIPT HAS BEEN DEPRECATED. IT MAY PRODUCE AN UN-BOOTABLE TEST" \
"IMAGE. TO BUILD A TEST IMAGE, USE build_image [FLAGS] test"
sleep 5 sleep 5
# No image was provided. Use the standard latest image # No image was provided. Use the standard latest image
@ -106,6 +103,9 @@ else
echo "Modifying image $FLAGS_image for test..." echo "Modifying image $FLAGS_image for test..."
fi fi
warn "THIS SCRIPT HAS BEEN DEPRECATED. IT MAY PRODUCE AN UN-BOOTABLE TEST" \
"IMAGE. TO BUILD A TEST IMAGE, USE build_image [FLAGS] test"
mod_image_for_test $(basename "$FLAGS_image") mod_image_for_test $(basename "$FLAGS_image")
print_time_elapsed print_time_elapsed