Skip to content

Commit 8f2d37b

Browse files
committed
Improve test
1 parent 807b28a commit 8f2d37b

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

tests/functional/cylc-combination-scripts/09-vr-icp-now.t

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#------------------------------------------------------------------------------
19-
# Ensure that validate step of Cylc VR cannot change the options object.
19+
# Ensure that validate step of `cylc vr` does not set the --icp option for the
20+
# restart step, as this would cause an InputError.
2021
# See https://github.com/cylc/cylc-flow/issues/6262
2122

2223
. "$(dirname "$0")/test_header"
@@ -26,14 +27,13 @@ WORKFLOW_ID=$(workflow_id)
2627

2728
cp -r "${TEST_SOURCE_DIR}/${TEST_NAME_BASE}/flow.cylc" .
2829

29-
run_ok "${TEST_NAME_BASE}-vip" \
30-
cylc vip . \
31-
--workflow-name "${WORKFLOW_ID}" \
32-
--no-detach \
33-
--no-run-name
30+
run_ok "${TEST_NAME_BASE}-vip" cylc vip . \
31+
--workflow-name "${WORKFLOW_ID}" \
32+
--no-detach \
33+
--no-run-name \
34+
--mode simulation
3435

3536
echo "# Some Comment" >> flow.cylc
3637

3738
run_ok "${TEST_NAME_BASE}-vr" \
38-
cylc vr "${WORKFLOW_ID}" \
39-
--stop-cycle-point 2020-01-01T00:02Z
39+
cylc vr "${WORKFLOW_ID}" --no-detach --mode simulation

tests/functional/cylc-combination-scripts/09-vr-icp-now/flow.cylc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
[scheduler]
2+
[[events]]
3+
restart timeout = PT0S
14
[scheduling]
25
initial cycle point = 2020
3-
stop after cycle point = 2020-01-01T00:01Z
6+
final cycle point = 2020
47
[[graph]]
5-
PT1M = foo
8+
P1Y = foo
69
[runtime]
710
[[foo]]
811
[[[simulation]]]

0 commit comments

Comments
 (0)