Skip to content

Commit

Permalink
add test for deprecation message cylc install
Browse files Browse the repository at this point in the history
  • Loading branch information
datamel committed Nov 29, 2021
1 parent 3a7d352 commit a843267
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/functional/cylc-install/00-simple.t
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,17 @@ make_rnd_workflow
rm -f "${RND_WORKFLOW_SOURCE}/flow.cylc"
touch "${RND_WORKFLOW_SOURCE}/suite.rc"
run_ok "${TEST_NAME}" cylc install --flow-name="${RND_WORKFLOW_NAME}" -C "${RND_WORKFLOW_SOURCE}"

contains_ok "${TEST_NAME}.stdout" <<__OUT__
INSTALLED $RND_WORKFLOW_NAME/run1 from ${RND_WORKFLOW_SOURCE}
__OUT__

# Test deprecation message is displayed on installing a suite.rc file
MSG=$(python -c 'from cylc.flow.workflow_files import SUITERC_DEPR_MSG;
print(SUITERC_DEPR_MSG)')

grep_ok "$MSG" "${TEST_NAME}.stderr"


purge_rnd_workflow

# -----------------------------------------------------------------------------
Expand Down

0 comments on commit a843267

Please sign in to comment.