From 5aa31fe38a9278630824313faac2fea06ed5694d Mon Sep 17 00:00:00 2001 From: mukesh agrawal Date: Tue, 18 Oct 2011 15:33:30 -0700 Subject: [PATCH] cros_utils: change default image type for cros_image_to_target BUG=chromium-os:21822 TEST=manual testing: ran with --debug, and verified that the chosen image file is appropriate. (test image is chosen, unless --no-test is specified. if both --test and --no-test are present, image file is chosen according to whichever option appears last.) Change-Id: Ia0a6d0ebac889a347d1b8989b8b2c3db8231dcae Reviewed-on: http://gerrit.chromium.org/gerrit/10265 Tested-by: mukesh agrawal Reviewed-by: Paul Stewart Commit-Ready: mukesh agrawal --- bin/cros_image_to_target.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/cros_image_to_target.py b/bin/cros_image_to_target.py index f4bd069d40..2c614eee0b 100755 --- a/bin/cros_image_to_target.py +++ b/bin/cros_image_to_target.py @@ -605,8 +605,10 @@ def main(argv): action='store_true', help='Display progress') parser.add_option('--debug', dest='debug', default=False, action='store_true', help='Display running commands') - parser.add_option('--test', dest='test', default=False, + parser.add_option('--test', dest='test', default=True, action='store_true', help='Select test image') + parser.add_option('--no-test', dest='test', + action='store_false', help='Select non-test image') (options, args) = parser.parse_args(argv)