Skip to content

Commit 289bcc2

Browse files
Generated commit to update templated files based on rev 53e83c4 in stackabletech/operator-templating repo. (#827)
Triggered by: Manual run triggered by: razvan with message [run-tests --skip-tests]
1 parent 2d9146a commit 289bcc2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/run-tests

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
7272
action="store_true",
7373
)
7474

75+
parser.add_argument(
76+
"--skip-tests",
77+
help="Do not actually run the tests.",
78+
action="store_true",
79+
)
80+
7581
parser.add_argument(
7682
"--skip-release",
7783
help="Do not install operators.",
@@ -349,7 +355,10 @@ def main(argv) -> int:
349355
gen_tests(opts.test_suite)
350356
with release_file(opts.operator) as f:
351357
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)
353362
except TestRunnerException:
354363
ret = 1
355364
return ret

0 commit comments

Comments
 (0)