Skip to content

Commit

Permalink
Merge pull request #3489 from goalgorilla/internal/behat-mail-spool-d…
Browse files Browse the repository at this point in the history
…ebug

Internal: Allow debugging mail spool for failed tests
  • Loading branch information
robertragas committed Aug 23, 2023
2 parents 2c6416e + 2d6bccb commit c112779
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ jobs:
mv html/profiles/contrib/social/tests/behat/logs/* $OUTPUT_FOLDER/
fi
# Move files from the mail spool to the output folder if they exist
if (shopt -s nullglob; f=(html/profiles/contrib/social/tests/behat/mail-spool/*); ((${#f[@]}))); then
mv html/profiles/contrib/social/tests/behat/mail-spool/* $OUTPUT_FOLDER/
fi
# Dump the database with the state of the test failure to allow for
# local inspection.
drush sql-dump > $OUTPUT_FOLDER/at-test-failure.sql
Expand Down

0 comments on commit c112779

Please sign in to comment.