| 1 |
#!Jinja2 |
| 2 |
|
| 3 |
[scheduler] |
| 4 |
UTC mode = True |
| 5 |
[[events]] |
| 6 |
expected task failures = 19990101T0000Z/bad-submitter |
| 7 |
|
| 8 |
[scheduling] |
| 9 |
initial cycle point=1999 |
| 10 |
final cycle point=1999 |
| 11 |
[[graph]] |
| 12 |
P1Y = bad-submitter:submit-failed? => grepper |
| 13 |
|
| 14 |
[runtime] |
| 15 |
[[root]] |
| 16 |
[[bad-submitter]] |
| 17 |
script = true |
| 18 |
platform = {{ CYLC_TEST_PLATFORM }} |
| 19 |
[[grepper]] |
| 20 |
script = """ |
| 21 |
set -x |
| 22 |
# Test that the original command is printed |
| 23 |
A_LOG="$(dirname "$0")/../../bad-submitter/01/job-activity.log" |
| 24 |
grep '\[jobs-submit cmd\] ssh .* {{CYLC_TEST_HOST}} .*cylc jobs-submit.*' \ |
| 25 |
"${A_LOG}" |
| 26 |
# Stop the workflow cleanly |
| 27 |
cylc stop "${CYLC_WORKFLOW_ID}" |
| 28 |
""" |