Skip to content

Commit 48603e4

Browse files
authored
feat: add --namespace to run-tests (#458)
1 parent 84571c9 commit 48603e4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

config/retired_files.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
# This is uncommented as I had issues with everything being deleted when this was just present as an empty key.
44
# May be something to investigate.
55
retired_files:
6-
- python/cargo_version.py
7-
- python/requirements.txt
8-
- .flake8 # replaced by ruff
9-
- .github/workflows/pr_reviewdog.yaml # replaced by pr_pre-commit.yaml
6+
- scripts/run_test.sh

template/scripts/run-tests

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def maybe_install_release(skip_release: bool, release_file: str) -> None:
313313
raise TestRunnerException()
314314

315315

316-
def gen_tests(test_suite: str) -> None:
316+
def gen_tests(test_suite: str, namespace: str) -> None:
317317
try:
318318
beku_cmd = [
319319
"beku",
@@ -328,6 +328,8 @@ def gen_tests(test_suite: str) -> None:
328328
]
329329
if test_suite:
330330
beku_cmd.extend(["--suite", test_suite])
331+
if namespace:
332+
beku_cmd.extend(["--namespace", namespace])
331333

332334
logging.debug(f"Running : {beku_cmd}")
333335
subprocess.run(
@@ -386,7 +388,7 @@ def main(argv) -> int:
386388
opts = parse_args(argv[1:])
387389
logging.basicConfig(encoding="utf-8", level=opts.log_level)
388390
have_requirements()
389-
gen_tests(opts.test_suite)
391+
gen_tests(opts.test_suite, opts.namespace)
390392
with release_file(opts.operator, opts.skip_operator) as f:
391393
maybe_install_release(opts.skip_release, f)
392394
if opts.skip_tests:

0 commit comments

Comments
 (0)