Skip to content

Commit

Permalink
running specific namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
umfranci committed Mar 4, 2025
1 parent 324b733 commit e776922
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions microsoft/testsuites/kselftest/kselftest.py
Original file line number Diff line number Diff line change
@@ -220,12 +220,10 @@ def run_all(

# Initialize run_tests and skip_tests from kwargs if provided
run_tests = kwargs.get("run_tests", [])
skip_tests = kwargs.get("skip_tests", [])

if run_tests or skip_tests:
run_tests_str = " ".join(run_tests)
skip_tests_str = " ".join(skip_tests)
command = f" TARGETS='{run_tests_str}' SKIP_TARGETS='{skip_tests_str}' 2>&1 | tee {result_file}"
if run_tests:
run_tests_str = " ".join(f"-n {test}" for test in run_tests)
command = f" {run_tests_str} 2>&1 | tee {result_file}"
else:
command = f" 2>&1 | tee {result_file}"

0 comments on commit e776922

Please sign in to comment.