pytestCheckHook: Fix support for multiple files.

Quoting here will lead to the shell treating them as a single item.
This commit is contained in:
Martin Weinelt 2021-01-24 19:30:46 +01:00 committed by Jonathan Ringer
parent 45e5ebfad8
commit 0f5743bee2

View file

@ -37,7 +37,7 @@ function pytestCheckPhase() {
disabledTestsString=$(_pytestComputeDisabledTestsString "${disabledTests[@]}")
args+=" -k \""$disabledTestsString"\""
fi
for file in "${disabledTestFiles[@]}"; do
for file in ${disabledTestFiles[@]}; do
if [ ! -f "$file" ]; then
echo "Disabled test file \"$file\" does not exist. Aborting"
exit 1