Skip to content

Commit 8f4a1ac

Browse files
committed
made test 10 work
1 parent 963cddb commit 8f4a1ac

File tree

2 files changed

+16
-52
lines changed

2 files changed

+16
-52
lines changed

tests/functional/cylc-review/10-jobs-task-status.t

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,18 @@ init_workflow "${TEST_NAME_BASE}" <<'__SUITE_RC__'
4646
[[[job]]]
4747
execution retry delays = 3*PT1S
4848
[[baz]]
49-
env-script = """
50-
trap '' EXIT
51-
if ((${CYLC_TASK_SUBMIT_NUMBER} == 1)); then
52-
echo "
53-
fi
54-
"""
55-
script = true
49+
script = """
50+
echo "Hello Wold
51+
"""
52+
[[[events]]]
53+
handler events = submission failed
54+
submission failed handlers = """
55+
cylc broadcast %(workflow)s -p '*' -n 'baz' -s 'script = echo hello world'
56+
cylc trigger %(workflow)s//%(id)s
57+
"""
5658
[[[job]]]
57-
submission retry delays = 3*PT1S
58-
submission polling intervals = 20*PT3S
59+
# submission retry delays = 3*PT5S
60+
# submission polling intervals = 20*PT3S
5961
__SUITE_RC__
6062

6163
TEST_NAME=$TEST_NAME_BASE-validate
@@ -94,21 +96,21 @@ cylc_ws_json_greps "${TEST_NAME}.stdout" "${TEST_NAME}.stdout" \
9496
"[('job_status',), None]" \
9597
"[('entries', ${FOO1}, 'task_status',), 'succeeded']" \
9698
"[('entries', ${FOO1}, 'run_status',), 1]" \
97-
"[('entries', ${FOO1}, 'run_signal',), 'EXIT']" \
99+
"[('entries', ${FOO1}, 'run_signal',), 'ERR']" \
98100
"[('entries', ${FOO2}, 'task_status',), 'succeeded']" \
99101
"[('entries', ${FOO2}, 'run_status',), 1]" \
100-
"[('entries', ${FOO2}, 'run_signal',), 'EXIT']" \
102+
"[('entries', ${FOO2}, 'run_signal',), 'ERR']" \
101103
"[('entries', ${FOO3}, 'task_status',), 'succeeded']" \
102104
"[('entries', ${FOO3}, 'run_status',), 0]" \
103105
"[('entries', ${BAR1}, 'task_status',), 'failed']" \
104106
"[('entries', ${BAR1}, 'run_status',), 1]" \
105-
"[('entries', ${BAR1}, 'run_signal',), 'EXIT']" \
107+
"[('entries', ${BAR1}, 'run_signal',), 'ERR']" \
106108
"[('entries', ${BAR2}, 'task_status',), 'failed']" \
107109
"[('entries', ${BAR2}, 'run_status',), 1]" \
108-
"[('entries', ${BAR2}, 'run_signal',), 'EXIT']" \
110+
"[('entries', ${BAR2}, 'run_signal',), 'ERR']" \
109111
"[('entries', ${BAR3}, 'task_status',), 'failed']" \
110112
"[('entries', ${BAR3}, 'run_status',), 1]" \
111-
"[('entries', ${BAR3}, 'run_signal',), 'EXIT']" \
113+
"[('entries', ${BAR3}, 'run_signal',), 'ERR']" \
112114
"[('entries', ${BAZ1}, 'task_status',), 'succeeded']" \
113115
"[('entries', ${BAZ1}, 'submit_status',), 1]" \
114116
"[('entries', ${BAZ1}, 'run_status',), None]" \

tests/integration/test_cylc_review.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)