File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,12 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
72
72
action = "store_true" ,
73
73
)
74
74
75
+ parser .add_argument (
76
+ "--skip-tests" ,
77
+ help = "Do not actually run the tests." ,
78
+ action = "store_true" ,
79
+ )
80
+
75
81
parser .add_argument (
76
82
"--skip-release" ,
77
83
help = "Do not install operators." ,
@@ -349,7 +355,10 @@ def main(argv) -> int:
349
355
gen_tests (opts .test_suite )
350
356
with release_file (opts .operator ) as f :
351
357
maybe_install_release (opts .skip_release , f )
352
- run_tests (opts .test , opts .parallel , opts .namespace , opts .skip_delete )
358
+ if opts .skip_tests :
359
+ logging .info ("Skip running tests." )
360
+ else :
361
+ run_tests (opts .test , opts .parallel , opts .namespace , opts .skip_delete )
353
362
except TestRunnerException :
354
363
ret = 1
355
364
return ret
You can’t perform that action at this time.
0 commit comments