1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-07-07 04:19:25 +02:00

Capture exit code of nunit to avoid using failed tests as exit code

This commit is contained in:
Mark McDowall 2016-10-25 14:00:27 -07:00
parent 6fb1aa85d0
commit 4167ffe11a

View File

@ -42,3 +42,11 @@ for i in `find $TEST_DIR -name "$TEST_PATTERN"`;
done
$NUNIT_COMMAND --where "$WHERE" $NUNIT_PARAMS $ASSEMBLIES;
EXIT_CODE=$?
if [ "$EXIT_CODE" -ge 0 ]; then
echo "Failed tests: $EXIT_CODE"
exit 0
else
exit $EXIT_CODE
fi