aboutsummaryrefslogtreecommitdiff
path: root/.github/scripts
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2023-07-26 10:59:54 +0200
committerGitHub <noreply@github.com>2023-07-26 10:59:54 +0200
commitfd5736db607a8449a49764ea411377ea2cca1e84 (patch)
treeae2c9cef960150724aca3b568c3bdaf7ed80f448 /.github/scripts
parent82db122ab8a130e011b763564adba171354b5503 (diff)
parente81f60321643b05dd11ae8671d6d288467b274c1 (diff)
downloadGT5-Unofficial-fd5736db607a8449a49764ea411377ea2cca1e84.tar.gz
GT5-Unofficial-fd5736db607a8449a49764ea411377ea2cca1e84.tar.bz2
GT5-Unofficial-fd5736db607a8449a49764ea411377ea2cca1e84.zip
Merge pull request #61 from GTNewHorizons/cleanup/sByProductList
Remove reference to sByProductList
Diffstat (limited to '.github/scripts')
-rwxr-xr-x.github/scripts/test_no_error_reports51
1 files changed, 0 insertions, 51 deletions
diff --git a/.github/scripts/test_no_error_reports b/.github/scripts/test_no_error_reports
deleted file mode 100755
index 1fcc7396c6..0000000000
--- a/.github/scripts/test_no_error_reports
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env bash
-
-# bashsupport disable=BP5006 # Global environment variables
-RUNDIR="run" \
- CRASH="crash-reports" \
- SERVERLOG="server.log"
-
-# enable nullglob to get 0 results when no match rather than the pattern
-shopt -s nullglob
-
-# store matches in array
-crash_reports=("$RUNDIR/$CRASH/crash"*.txt)
-
-# if array not empty there are crash_reports
-if [ "${#crash_reports[@]}" -gt 0 ]; then
- # get the latest crash_report from array
- latest_crash_report="${crash_reports[-1]}"
- {
- printf 'Latest crash report detected %s:\n' "${latest_crash_report##*/}"
- cat "$latest_crash_report"
- } >&2
- exit 1
-fi
-
-if grep --quiet --fixed-strings 'Fatal errors were detected' "$SERVERLOG"; then
- {
- printf 'Fatal errors detected:\n'
- cat server.log
- } >&2
- exit 1
-fi
-
-if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED' \
- "$SERVERLOG"; then
- {
- printf 'Server force stopped:'
- cat server.log
- } >&2
- exit 1
-fi
-
-if ! grep --quiet --perl-regexp --only-matching '.+Done \(.+\)\! For help, type "help" or "\?"' "$SERVERLOG"; then
- {
- printf 'Server did not finish startup:'
- cat server.log
- } >&2
- exit 1
-fi
-
-printf 'No crash reports detected'
-exit 0