Skip to content

Commit c36d74f

Browse files
authored
Merge pull request #105 from edeluzio/bugfix/exit-with-code-0-for-known-fails
Bugfix: Exit with code 0 for failures with .failing tests
2 parents b8088ae + 492bb6d commit c36d74f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

peter-jr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ findTests \
188188
echo "${FAIL}"
189189
peter_exit_code=1
190190

191+
if [ "$knownFail" ]; then
192+
peter_exit_code=0
193+
fi
194+
191195
if [ ! "$VERBOSE" ] && [ ! "$knownFail" ]; then
192196
echo
193197
echo "$(grey --) $(yellow ${file}) $(grey vvvvvvvvvvvvvv)"

0 commit comments

Comments
 (0)