forked from SinTh0r4s/ExampleMod1.7.10
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request SinTh0r4s#50 from SinTh0r4s/ci-detect-server-failu…
…re-without-apparent-crash CI: make error checking in testing more robust
- Loading branch information
Showing
3 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
if [[ -d "run/crash-reports" ]]; then | ||
echo "Crash reports detected:" | ||
cat $directory/* | ||
exit 1 | ||
fi | ||
|
||
if grep --quiet "Fatal errors were detected" server.log; then | ||
echo "Fatal errors detected:" | ||
cat server.log | ||
exit 1 | ||
fi | ||
|
||
if grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" server.log; then | ||
echo "Server force stopped:" | ||
cat server.log | ||
exit 1 | ||
fi | ||
|
||
if grep --quiet 'Done .+ For help, type "help" or "?"' server.log; then | ||
echo "Server didn't finish startup:" | ||
cat server.log | ||
exit 1 | ||
fi | ||
|
||
echo "No crash reports detected" | ||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters