diff options
author | Bass <tudurap.com@gmail.com> | 2021-12-24 18:49:07 +0000 |
---|---|---|
committer | Bass <tudurap.com@gmail.com> | 2021-12-24 18:49:24 +0000 |
commit | 062fb04b02b9291741fdc4e79441e07cedee8796 (patch) | |
tree | 3457194883409c4d901e9663106b18cef99062cd /.github/scripts | |
parent | 345a893545884f343c9b480dd6e2c0e5fb5663f8 (diff) | |
download | GT5-Unofficial-062fb04b02b9291741fdc4e79441e07cedee8796.tar.gz GT5-Unofficial-062fb04b02b9291741fdc4e79441e07cedee8796.tar.bz2 GT5-Unofficial-062fb04b02b9291741fdc4e79441e07cedee8796.zip |
Merge pull request #19 from GTNewHorizons/unified-build-script
GTNewHorizons/TecTech/pull/19 Update buildscript
Unify 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 + |