@@ -61,6 +61,9 @@ def main():
61
61
argparser .add_argument (
62
62
'-skip-performance' , action = 'store_true' ,
63
63
help = "Don't report performance differences" )
64
+ argparser .add_argument (
65
+ '-skip-check-added' , action = 'store_true' ,
66
+ help = "Don't validate newly added benchmarks" )
64
67
argparser .add_argument (
65
68
'-o' , type = str ,
66
69
help = 'In addition to stdout, write the results into a markdown file' )
@@ -80,10 +83,6 @@ def main():
80
83
argparser .add_argument (
81
84
'newbuilddir' , nargs = 1 , type = str ,
82
85
help = 'new benchmark build directory' )
83
- argparser .add_argument (
84
- '-check-added' , action = 'store_const' ,
85
- help = "Run BenchmarkDoctor's check on newly added benchmarks" ,
86
- const = lambda args : check_added (args ), dest = 'func' )
87
86
argparser .set_defaults (func = test_opt_levels )
88
87
args = argparser .parse_args ()
89
88
VERBOSE = args .verbose
@@ -119,7 +118,8 @@ def test_opt_levels(args):
119
118
args .platform , output_file ):
120
119
changes = True
121
120
122
- check_added (args , output_file )
121
+ if not args .skip_check_added :
122
+ check_added (args , output_file )
123
123
124
124
if output_file :
125
125
if changes :
0 commit comments