#!Jinja2
[cylc]
   [[reference test]]
       expected task failures = t1.1
[scheduling]
    [[graph]]
        R1=t1:start=>stop
[runtime]
    [[t1]]
        script=sleep 120
{% if "CYLC_TEST_BATCH_TASK_HOST" in environ and environ["CYLC_TEST_BATCH_TASK_HOST"] %}
        [[[remote]]]
            host={{environ["CYLC_TEST_BATCH_TASK_HOST"]}}
{% endif %}
        [[[job]]]
            batch system=slurm
        [[[directives]]]
            --time=03:00
{% if "CYLC_TEST_BATCH_SITE_DIRECTIVES" in environ and environ["CYLC_TEST_BATCH_SITE_DIRECTIVES"] %}
            {{environ["CYLC_TEST_BATCH_SITE_DIRECTIVES"]}}
{% endif %}
    [[stop]]
        script="""
cylc kill "$CYLC_SUITE_NAME" 't1'
cylc stop "$CYLC_SUITE_NAME"
"""
