def AddCommandLineArgs(parser): story_module.StoryFilter.AddCommandLineArgs(parser) results_options.AddResultsOptions(parser) # Page set options group = optparse.OptionGroup(parser, 'Page set repeat options') group.add_option('--pageset-repeat', default=1, type='int', help='Number of times to repeat the entire pageset.') group.add_option('--smoke-test-mode', action='store_true', help='run this test in smoke test mode so do not repeat.') group.add_option('--max-failures', default=None, type='int', help='Maximum number of test failures before aborting ' 'the run. Defaults to the number specified by the ' 'PageTest.') group.add_option('--pause', dest='pause', default=None, choices=_PAUSE_STAGES, help='Pause for interaction at the specified stage. ' 'Valid stages are %s.' % ', '.join(_PAUSE_STAGES)) parser.add_option_group(group) # WPR options group = optparse.OptionGroup(parser, 'Web Page Replay options') group.add_option( '--use-live-sites', dest='use_live_sites', action='store_true', help='Run against live sites and ignore the Web Page Replay archives.') parser.add_option_group(group) parser.add_option('-d', '--also-run-disabled-tests', dest='run_disabled_tests', action='store_true', default=False, help='Ignore expectations.config disabling.')
def AddCommandLineArgs(parser): story_module.StoryFilter.AddCommandLineArgs(parser) results_options.AddResultsOptions(parser) # Page set options group = optparse.OptionGroup(parser, 'Page set repeat options') group.add_option('--pageset-repeat', default=1, type='int', help='Number of times to repeat the entire pageset.') group.add_option('--max-failures', default=None, type='int', help='Maximum number of test failures before aborting ' 'the run. Defaults to the number specified by the ' 'PageTest.') parser.add_option_group(group) # WPR options group = optparse.OptionGroup(parser, 'Web Page Replay options') group.add_option( '--use-live-sites', dest='use_live_sites', action='store_true', help='Run against live sites and ignore the Web Page Replay archives.') parser.add_option_group(group) parser.add_option('-d', '--also-run-disabled-tests', dest='run_disabled_tests', action='store_true', default=False, help='Ignore @Disabled and @Enabled restrictions.')
def AddCommandLineArgs(parser): story_module.StoryFilter.AddCommandLineArgs(parser) results_options.AddResultsOptions(parser) # Page set options group = optparse.OptionGroup(parser, 'Page set repeat options') # Note that the default for pageset-repeat is 1 unless the benchmark # specifies a different default by adding # `options = {'pageset_repeat': X}` in their benchmark. Defaults are always # overridden by passed in commandline arguments. group.add_option('--pageset-repeat', default=1, type='int', help='Number of times to repeat the entire pageset. ') group.add_option('--smoke-test-mode', action='store_true', help='This flag does not do anything right now and is' 'scheduled for deletion.') # TODO(crbug.com/910809): Add flag to reduce iterations to 1. # (An iteration is a repeat of the benchmark without restarting Chrome. It # must be supported in benchmark-specific code.) This supports the smoke # test use case since we don't want to waste time with iterations in smoke # tests. group.add_option('--max-failures', default=None, type='int', help='Maximum number of test failures before aborting ' 'the run. Defaults to the number specified by the ' 'PageTest.') group.add_option('--pause', dest='pause', default=None, choices=_PAUSE_STAGES, help='Pause for interaction at the specified stage. ' 'Valid stages are %s.' % ', '.join(_PAUSE_STAGES)) parser.add_option_group(group) # WPR options group = optparse.OptionGroup(parser, 'Web Page Replay options') group.add_option( '--use-live-sites', dest='use_live_sites', action='store_true', help='Run against live sites and ignore the Web Page Replay archives.') parser.add_option_group(group) parser.add_option('-d', '--also-run-disabled-tests', dest='run_disabled_tests', action='store_true', default=False, help='Ignore expectations.config disabling.') parser.add_option('-p', '--print-only', dest='print_only', choices=['stories', 'tags', 'both'], default=None)
def AddCommandLineArgs(parser): story_module.StoryFilter.AddCommandLineArgs(parser) results_options.AddResultsOptions(parser) group = optparse.OptionGroup(parser, 'Story runner options') # Note that the default for pageset-repeat is 1 unless the benchmark # specifies a different default by adding # `options = {'pageset_repeat': X}` in their benchmark. Defaults are always # overridden by passed in commandline arguments. group.add_option('--pageset-repeat', default=1, type='int', help='Number of times to repeat the entire pageset. ') # TODO(crbug.com/910809): Add flag to reduce iterations to 1. # (An iteration is a repeat of the benchmark without restarting Chrome. It # must be supported in benchmark-specific code.) This supports the smoke # test use case since we don't want to waste time with iterations in smoke # tests. group.add_option('--max-failures', default=None, type='int', help='Maximum number of test failures before aborting ' 'the run. Defaults to the number specified by the ' 'PageTest.') group.add_option('--pause', dest='pause', default=None, choices=_PAUSE_STAGES, help='Pause for interaction at the specified stage. ' 'Valid stages are %s.' % ', '.join(_PAUSE_STAGES)) group.add_option('--suppress-gtest-report', action='store_true', help='Suppress gtest style report of progress as stories ' 'are being run.') parser.add_option_group(group) group = optparse.OptionGroup(parser, 'Web Page Replay options') group.add_option( '--use-live-sites', dest='use_live_sites', action='store_true', help='Run against live sites and ignore the Web Page Replay archives.') parser.add_option_group(group) parser.add_option('-d', '--also-run-disabled-tests', dest='run_disabled_tests', action='store_true', default=False, help='Ignore expectations.config disabling.') parser.add_option('-p', '--print-only', dest='print_only', choices=['stories', 'tags', 'both'], default=None) parser.add_option('-w', '--wait-for-cpu-temp', dest='wait_for_cpu_temp', action='store_true', default=False, help='Introduces a wait between each story ' 'until the device CPU has cooled down. If ' 'not specified, this wait is disabled. ' 'Device must be supported. ') parser.add_option('--run-full-story-set', action='store_true', default=False, help='Whether to run the complete set of stories instead ' 'of an abridged version. Note that if the story set ' 'does not provide the information required to abridge it, ' 'then this argument will have no impact.')