Skip to content

Commit 57a62c2

Browse files
committed
Apply suggestion from code review
1 parent 480599d commit 57a62c2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/functional/events/46-task-output-as-event.t

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
. "$(dirname "$0")/test_header"
2121

22-
set_test_number 3
22+
set_test_number 4
2323

2424
init_workflow "${TEST_NAME_BASE}" <<'__FLOW_CONFIG__'
2525
[scheduling]
@@ -36,11 +36,16 @@ cylc message -- ${CYLC_WORKFLOW_ID} ${CYLC_TASK_JOB} \
3636
lily = lily
3737
iris = iris
3838
[[[events]]]
39-
handler events = rose, lily, iris, warning
39+
handler events = rose, lily, iris, warning, arsenic
40+
# (arsenic is an invalid event)
4041
handlers = echo %(message)s
4142
__FLOW_CONFIG__
4243

43-
run_ok "${TEST_NAME_BASE}-validate" cylc validate "${WORKFLOW_NAME}"
44+
TEST_NAME="${TEST_NAME_BASE}-validate"
45+
run_ok "$TEST_NAME" cylc validate "${WORKFLOW_NAME}"
46+
47+
dump_std "${TEST_NAME}"
48+
grep_ok 'WARNING - Invalid event name.*arsenic' "${TEST_NAME}.stderr"
4449

4550
workflow_run_ok "${TEST_NAME_BASE}-run" \
4651
cylc play --debug --no-detach "${WORKFLOW_NAME}"

0 commit comments

Comments
 (0)