Skip to content
Closed
Changes from 1 commit
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 @@ -33,6 +33,10 @@ function pytestCheckPhase() {

# Compose arguments
args=" -m pytest"
if [ -n "$dontIgnoreWarnings-}" ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads as "if not empty don't ignore warnings", which is a lot of negatives. Would if [ -z "$showWarnings-}" ] (which can be read as "if empty show warnings") be possible instead?

args+=" -W ignore::DeprecationWarning -W ignore::FutureWarning -W ignore::UserWarning"
fi

if [ -n "$disabledTests" ]; then
disabledTestsString=$(_pytestComputeDisabledTestsString "${disabledTests[@]}")
args+=" -k \""$disabledTestsString"\""
Expand Down