mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-07-01 18:01:28 +02:00
Try to detect if the server test run didn't shut down cleanly (#42)
Co-authored-by: Maya <10861407+serenibyss@users.noreply.github.com>
This commit is contained in:
parent
7101e4a65f
commit
68fd0cf41d
2
.github/workflows/build-and-test.yml
vendored
2
.github/workflows/build-and-test.yml
vendored
@ -108,7 +108,7 @@ jobs:
|
||||
PR_BRANCH: ${{ github.head_ref }}
|
||||
FIXED_BRANCH: ${{ github.head_ref }}-spotless-fixes
|
||||
|
||||
- name: Run server for ${{ inputs.timeout }} seconds
|
||||
- name: Run server for up to ${{ inputs.timeout }} seconds
|
||||
if: ${{ !inputs.client-only }}
|
||||
run: |
|
||||
mkdir -p run
|
||||
|
@ -39,6 +39,14 @@ if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep --quiet --fixed-strings 'Exception stopping the server' "$SERVERLOG"; then
|
||||
{
|
||||
printf "Server didn't shut down cleanly:\n"
|
||||
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:'
|
||||
|
Loading…
x
Reference in New Issue
Block a user