mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
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 <quiche@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Ready: mukesh agrawal <quiche@chromium.org>
This commit is contained in:
parent
3163cf0605
commit
5aa31fe38a
@ -605,8 +605,10 @@ def main(argv):
|
|||||||
action='store_true', help='Display progress')
|
action='store_true', help='Display progress')
|
||||||
parser.add_option('--debug', dest='debug', default=False,
|
parser.add_option('--debug', dest='debug', default=False,
|
||||||
action='store_true', help='Display running commands')
|
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')
|
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)
|
(options, args) = parser.parse_args(argv)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user