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>
diff --git a/mod_image_for_test.sh b/mod_image_for_test.sh
index 6d72ec1..0f3d0dd 100755
--- a/mod_image_for_test.sh
+++ b/mod_image_for_test.sh
@@ -49,9 +49,6 @@
 . "${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 @@
   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