Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Nov 13, 2023
1 parent 99fa0f5 commit d3b174f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y sqlite3 tree at
sudo apt-get install -y pcregrep
- name: Add .github/bin/ to PATH
# Sets up mocked mail command & any other custom executables
Expand Down
4 changes: 4 additions & 0 deletions tests/functional/events/09-task-event-mail.t
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@ run_ok "${TEST_NAME_BASE}-validate" \
workflow_run_ok "${TEST_NAME_BASE}-run" \
cylc play --reference-test --debug --no-detach ${OPT_SET} "${WORKFLOW_NAME}"

cat "${TEST_SMTPD_LOG}" > ${HOME}/foo


contains_ok "${TEST_SMTPD_LOG}" <<__LOG__
retry: 1/t1/01
succeeded: 1/t1/02
see: http://localhost/stuff/${USER}/${WORKFLOW_NAME}/
__LOG__


run_ok "${TEST_NAME_BASE}-grep-log" \
grep -qPizo "Subject: \[1/t1/01 retry\]\n ${WORKFLOW_NAME}" "${TEST_SMTPD_LOG}"
run_ok "${TEST_NAME_BASE}-grep-log" \
Expand Down

0 comments on commit d3b174f

Please sign in to comment.