From ff65d497e3513546a25a09f86c6a16d02dffa6ee Mon Sep 17 00:00:00 2001 From: Stacky McStackface Date: Tue, 25 Jun 2024 13:32:21 +0000 Subject: [PATCH] Generated commit to update templated files based on rev 53e83c4 in stackabletech/operator-templating repo. Triggered by: Manual run triggered by: razvan with message [run-tests --skip-tests] --- scripts/run-tests | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/run-tests b/scripts/run-tests index 3768dec1..c331043b 100755 --- a/scripts/run-tests +++ b/scripts/run-tests @@ -72,6 +72,12 @@ def parse_args(argv: list[str]) -> argparse.Namespace: action="store_true", ) + parser.add_argument( + "--skip-tests", + help="Do not actually run the tests.", + action="store_true", + ) + parser.add_argument( "--skip-release", help="Do not install operators.", @@ -349,7 +355,10 @@ def main(argv) -> int: gen_tests(opts.test_suite) with release_file(opts.operator) as f: maybe_install_release(opts.skip_release, f) - run_tests(opts.test, opts.parallel, opts.namespace, opts.skip_delete) + if opts.skip_tests: + logging.info("Skip running tests.") + else: + run_tests(opts.test, opts.parallel, opts.namespace, opts.skip_delete) except TestRunnerException: ret = 1 return ret