From 0e1709f295e88285d311a71bd1e69481e97965f1 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Sun, 3 Jun 2012 22:51:30 -0700 Subject: [PATCH] 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 Tested-by: Chris Sosa Commit-Ready: Chris Sosa --- mod_image_for_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod_image_for_test.sh b/mod_image_for_test.sh index 6d72ec1499..0f3d0dd687 100755 --- a/mod_image_for_test.sh +++ b/mod_image_for_test.sh @@ -49,9 +49,6 @@ switch_to_strict_mode . "${BUILD_LIBRARY_DIR}/mount_gpt_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 # No image was provided. Use the standard latest image @@ -106,6 +103,9 @@ else echo "Modifying image $FLAGS_image for test..." 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") print_time_elapsed