Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,10 @@ def _run_test(
pytest_args.extend(extra_pytest_args)
# Skip "FOLDER" in case "--ignore=FOLDER" is passed as an argument
# Which might be the case if we are ignoring some providers during compatibility checks
pytest_args_before_skip = pytest_args
pytest_args = [arg for arg in pytest_args if f"--ignore={arg}" not in pytest_args]
# If no test directory is left (all positional args were excluded/ignored), skip
if pytest_args and pytest_args[0].startswith("--"):
if pytest_args_before_skip != pytest_args and pytest_args[0].startswith("--"):
return 0, f"Skipped test, no tests needed: {shell_params.test_type}"
run_cmd.extend(pytest_args)
try:
Expand Down
Loading