Skip to content

Commit

Permalink
feat: add --namespace to run-tests (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan authored Nov 6, 2024
1 parent 84571c9 commit 48603e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions config/retired_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
# This is uncommented as I had issues with everything being deleted when this was just present as an empty key.
# May be something to investigate.
retired_files:
- python/cargo_version.py
- python/requirements.txt
- .flake8 # replaced by ruff
- .github/workflows/pr_reviewdog.yaml # replaced by pr_pre-commit.yaml
- scripts/run_test.sh
6 changes: 4 additions & 2 deletions template/scripts/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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(
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 48603e4

Please sign in to comment.