Commit 9186ad1 1 parent 389a0be commit 9186ad1 Copy full SHA for 9186ad1
File tree 1 file changed +15
-12
lines changed
1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 18
18
# Test that we can re-trigger a task in sim mode
19
19
20
20
. " $( dirname " $0 " ) /test_header"
21
- set_test_number 4
21
+ set_test_number 5
22
22
23
23
install_workflow " ${TEST_NAME_BASE} " " ${TEST_NAME_BASE} "
24
+
24
25
run_ok " ${TEST_NAME_BASE} -validate" cylc validate " ${WORKFLOW_NAME} "
26
+
25
27
workflow_run_ok " ${TEST_NAME_BASE} -start" \
26
28
cylc play " ${WORKFLOW_NAME} " --mode=simulation
29
+
27
30
SCHD_LOG=" ${WORKFLOW_RUN_DIR} /log/scheduler/log"
28
31
29
- # Wait for the workflow to stall, then check for first task failure:
32
+ # Wait for stall, then check for first task failure:
30
33
poll_grep_workflow_log ' stall timer starts'
31
- grep_ok \
32
- ' \[1/fail_fail_fail running job:01 flows:1\] => failed' \
33
- " ${SCHD_LOG} "
34
34
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:
37
38
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} "
43
46
44
47
purge
You can’t perform that action at this time.
0 commit comments