diff options
| author | Martin Robertz <dream-master@gmx.net> | 2021-12-21 11:32:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-21 11:32:53 +0100 |
| commit | 57208a027190813b5fd93f1ed4f17334b3fb3083 (patch) | |
| tree | 24b790c2662272e84365cb03d802cfecff0a2da3 /.github/scripts | |
| parent | fcec6e0fb21ef6e74b75a7bf9e38f4ee72e9b028 (diff) | |
| parent | fecde022f8513d42b01d14c3753627cccaf71c8f (diff) | |
| download | GT5-Unofficial-57208a027190813b5fd93f1ed4f17334b3fb3083.tar.gz GT5-Unofficial-57208a027190813b5fd93f1ed4f17334b3fb3083.tar.bz2 GT5-Unofficial-57208a027190813b5fd93f1ed4f17334b3fb3083.zip | |
Merge pull request #21 from GTNewHorizons/unified-build-script
Draft for unified build script
Diffstat (limited to '.github/scripts')
| -rw-r--r-- | .github/scripts/test-no-error-reports.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/scripts/test-no-error-reports.sh b/.github/scripts/test-no-error-reports.sh new file mode 100644 index 0000000000..e3876606d5 --- /dev/null +++ b/.github/scripts/test-no-error-reports.sh @@ -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 + |
