aboutsummaryrefslogtreecommitdiff
path: root/.github/scripts
diff options
context:
space:
mode:
authorGlodBlock <1356392126@qq.com>2022-01-22 11:48:52 +0800
committerGlodBlock <1356392126@qq.com>2022-01-22 11:48:52 +0800
commitf91272d93699e00db1dd6a3356d1dc6843bc99e8 (patch)
tree294a0f1f38254ed29d2ddea04e0aa452c06dffef /.github/scripts
parent1489795e9404fa59b68a84e5da90c242a69aeced (diff)
parent2fd47135d893c793aac5b8256ba372fb48c6398b (diff)
downloadGT5-Unofficial-f91272d93699e00db1dd6a3356d1dc6843bc99e8.tar.gz
GT5-Unofficial-f91272d93699e00db1dd6a3356d1dc6843bc99e8.tar.bz2
GT5-Unofficial-f91272d93699e00db1dd6a3356d1dc6843bc99e8.zip
Merge branch 'master' of https://github.com/GTNewHorizons/GoodGenerator
Diffstat (limited to '.github/scripts')
-rw-r--r--.github/scripts/test-no-error-reports.sh27
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
+