Skip to content

Skipped distributed tests show up as passed (return 0) #131

Open
@carmocca

Description

@carmocca
          Note that this can be very misleading because a skipped test also returns 0, so it can make it seem like a test passed when it didn't run

Originally posted by @carmocca in #130 (comment)

python -um pytest -sv "$test" --pythonwarnings ignore --junitxml="$test-results.xml" 2>&1 > "$test-output.txt"
pytest_status=$?
printf "$test status >>> $pytest_status\n"
if [ $pytest_status -ne 0 ]; then
status=$pytest_status
cat "$test-output.txt"
fi

cc @Borda

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions