Skip to content

sanitycheck: make --subtest and --test mutually exclusive #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/sanitycheck
Original file line number Diff line number Diff line change
Expand Up @@ -2690,13 +2690,15 @@ def parse_arguments():
"defconfig that have that value assigned to any value. "
"Prepend a '!' to invert the match.")

case_select.add_argument(
test_xor_subtest = case_select.add_mutually_exclusive_group()

test_xor_subtest.add_argument(
"-s", "--test", action="append",
help="Run only the specified test cases. These are named by "
"<path to test project relative to "
"--testcase-root>/<testcase.yaml section name>")

case_select.add_argument(
test_xor_subtest.add_argument(
"--sub-test", action="append",
help="Run only the specified sub-test cases and its parent. These are named by "
"test case name appended by test function, i.e. kernel.mutex.mutex_lock_unlock."
Expand Down