diff options
| author | unknown <gtandemmodding@gmail.com> | 2022-01-20 15:09:21 +1100 |
|---|---|---|
| committer | Jason Mitchell <mitchej+github@gmail.com> | 2022-01-19 21:07:45 -0800 |
| commit | 6ceaf85b6816b0a299612f385d6a11d2344eaccf (patch) | |
| tree | c924f468929c98b5837addba9b73a475018fa856 /.github/scripts | |
| parent | b5b141169d0a29ee7eefa8695530229f410dbd0c (diff) | |
| download | GT5-Unofficial-6ceaf85b6816b0a299612f385d6a11d2344eaccf.tar.gz GT5-Unofficial-6ceaf85b6816b0a299612f385d6a11d2344eaccf.tar.bz2 GT5-Unofficial-6ceaf85b6816b0a299612f385d6a11d2344eaccf.zip | |
Buildscript Changes
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 + |
