[task parameters] num = 99..101..2 stuff = this, that state = open, closed [scheduling] [[graph]] R1 = """ t1 => t2 x """ [runtime] [[T]] [[[environment]]] MYNUM = %(num)d MYSTUFF = stuff %(stuff)s MY_FILE = %(num)04d-%(stuff)s [[U]] [[[environment]]] STATUS = %(state)s [[t1]] inherit = T, U script = """ FILE="${CYLC_WORKFLOW_RUN_DIR}/t1-${MY_FILE}" echo "${MYNUM} ${MYSTUFF} ${STATUS}" >"${FILE}" diff ${FILE} ${FILE}.ref """ [[t2]] inherit = T, U script = """ FILE="${CYLC_WORKFLOW_RUN_DIR}/t2-${MY_FILE}" echo "${MYNUM} ${MYSTUFF} ${STATUS}" >"${FILE}" diff ${FILE} ${FILE}.ref """ # The following tests the example of GH #4248. We had wrongly assumed that # general comes before specific, for parameters in inherited environments. [[x]] inherit = U script = test $STATUS == closed [[x]] pre-script = "echo pre"