Skip to content

Commit 9186ad1

Browse files
committed
Fix func test, after update on master.
1 parent 389a0be commit 9186ad1

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

tests/functional/modes/05-sim-trigger.t

+15-12
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,30 @@
1818
# Test that we can re-trigger a task in sim mode
1919

2020
. "$(dirname "$0")/test_header"
21-
set_test_number 4
21+
set_test_number 5
2222

2323
install_workflow "${TEST_NAME_BASE}" "${TEST_NAME_BASE}"
24+
2425
run_ok "${TEST_NAME_BASE}-validate" cylc validate "${WORKFLOW_NAME}"
26+
2527
workflow_run_ok "${TEST_NAME_BASE}-start" \
2628
cylc play "${WORKFLOW_NAME}" --mode=simulation
29+
2730
SCHD_LOG="${WORKFLOW_RUN_DIR}/log/scheduler/log"
2831

29-
# Wait for the workflow to stall, then check for first task failure:
32+
# Wait for stall, then check for first task failure:
3033
poll_grep_workflow_log 'stall timer starts'
31-
grep_ok \
32-
'\[1/fail_fail_fail running job:01 flows:1\] => failed' \
33-
"${SCHD_LOG}"
3434

35-
# Trigger task again, wait for it to send a warning and check that it
36-
# too has failed:
35+
grep_ok '\[1/fail_fail_fail/01:running\] => failed' "${SCHD_LOG}"
36+
37+
# Trigger task again, and check that it too failed:
3738
cylc trigger "${WORKFLOW_NAME}//1/fail_fail_fail"
38-
poll_grep_workflow_log \
39-
'job:02.*did not complete'
40-
grep_ok \
41-
'\[1/fail_fail_fail running job:02 flows:1\] => failed' \
42-
"${SCHD_LOG}"
39+
40+
poll_grep_workflow_log -E \
41+
'1/fail_fail_fail/02.* did not complete required outputs'
42+
43+
grep_ok '\[1/fail_fail_fail/02:running\] => failed' "${SCHD_LOG}"
44+
45+
run_ok "stop" cylc stop --max-polls=10 --interval=1 "${WORKFLOW_NAME}"
4346

4447
purge

0 commit comments

Comments
 (0)