aboutsummaryrefslogtreecommitdiff
path: root/.github/scripts
diff options
context:
space:
mode:
authorJohann Bernhardt <johann.bernhardt@tum.de>2021-12-17 18:11:17 +0100
committerJohann Bernhardt <johann.bernhardt@tum.de>2021-12-17 18:11:17 +0100
commit8d5b072e989cda9b38d6f56b843f76ac7a37b986 (patch)
treeec91a83d5a690f3cd0bef6344497299eb5efe261 /.github/scripts
parentedec7d539ffe2431917b3469f5dee8d03f90c6f2 (diff)
downloadGT5-Unofficial-8d5b072e989cda9b38d6f56b843f76ac7a37b986.tar.gz
GT5-Unofficial-8d5b072e989cda9b38d6f56b843f76ac7a37b986.tar.bz2
GT5-Unofficial-8d5b072e989cda9b38d6f56b843f76ac7a37b986.zip
Update build script and CI
Diffstat (limited to '.github/scripts')
-rw-r--r--.github/scripts/test-no-crash-reports.sh9
-rw-r--r--.github/scripts/test-no-error-reports.sh27
2 files changed, 27 insertions, 9 deletions
diff --git a/.github/scripts/test-no-crash-reports.sh b/.github/scripts/test-no-crash-reports.sh
deleted file mode 100644
index c67e342c06..0000000000
--- a/.github/scripts/test-no-crash-reports.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-directory="run/crash-reports"
-if [ -d $directory ]; then
- echo "Crash reports detected:"
- cat $directory/*
- exit 1
-else
- echo "No crash reports detected"
- exit 0
-fi
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
+