[meta]
    title = content reload test
    description = """two tasks: the second will fail, causing the test to
fail, unless the first reloads the workflow definition after modifying it."""

[scheduling]
    [[graph]]
        R1 = "reloader => foo"

[runtime]
    [[reloader]]
        script = """
# change the value of $FALSE to "true" in foo's environment:
perl -pi -e 's/(FALSE = )false( # marker)/\1true\2/' $CYLC_WORKFLOW_RUN_DIR/flow.cylc
# reload
cylc reload $CYLC_WORKFLOW_ID
"""
    [[foo]]
        script = "$FALSE"
        [[[environment]]]
            FALSE = false # marker
