mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Capture exit code of nunit to avoid using failed tests as exit code
This commit is contained in:
8
test.sh
8
test.sh
@@ -42,3 +42,11 @@ for i in `find $TEST_DIR -name "$TEST_PATTERN"`;
|
|||||||
done
|
done
|
||||||
|
|
||||||
$NUNIT_COMMAND --where "$WHERE" $NUNIT_PARAMS $ASSEMBLIES;
|
$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
|
||||||
|
Reference in New Issue
Block a user