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:
Wilhelm Schuster 2024-11-24 20:29:19 +01:00 committed by GitHub
parent 7101e4a65f
commit 68fd0cf41d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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:'