From ab2bbf6a11f864ca7e00f8ea581f398b6def3232 Mon Sep 17 00:00:00 2001 From: Stacky McStackface Date: Wed, 6 Nov 2024 13:18:13 +0000 Subject: [PATCH] chore: Generated commit to update templated files since the last template run up to stackabletech/operator-templating@48603e443bf6986d1942a5316208fa1b95a041b6 Reference-to: stackabletech/operator-templating@48603e4 (pass on --namespace to beku) --- scripts/run-tests | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/run-tests b/scripts/run-tests index 3f41d2d..31b8e7a 100755 --- a/scripts/run-tests +++ b/scripts/run-tests @@ -313,7 +313,7 @@ def maybe_install_release(skip_release: bool, release_file: str) -> None: raise TestRunnerException() -def gen_tests(test_suite: str) -> None: +def gen_tests(test_suite: str, namespace: str) -> None: try: beku_cmd = [ "beku", @@ -328,6 +328,8 @@ def gen_tests(test_suite: str) -> None: ] if test_suite: beku_cmd.extend(["--suite", test_suite]) + if namespace: + beku_cmd.extend(["--namespace", namespace]) logging.debug(f"Running : {beku_cmd}") subprocess.run( @@ -386,7 +388,7 @@ def main(argv) -> int: opts = parse_args(argv[1:]) logging.basicConfig(encoding="utf-8", level=opts.log_level) have_requirements() - gen_tests(opts.test_suite) + gen_tests(opts.test_suite, opts.namespace) with release_file(opts.operator, opts.skip_operator) as f: maybe_install_release(opts.skip_release, f) if opts.skip_tests: