Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Dec 10, 2024
1 parent 2236a70 commit 50a676a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 4 additions & 1 deletion tests/functional/cylc-combination-scripts/01-vr-reload.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ run_ok "setup (vip)" \
cylc vip --debug \
--workflow-name "${WORKFLOW_NAME}" \
--no-run-name

export WORKFLOW_RUN_DIR="${RUN_DIR}/${WORKFLOW_NAME}"

poll_workflow_running

# Change something so that reinstall does something material:
echo "# Hello World" >> "flow.cylc"

# It validates and reloads:

run_ok "${TEST_NAME_BASE}-runs" cylc vr "${WORKFLOW_NAME}"

# Grep for VR reporting revalidation, reinstallation and reloading
Expand Down
5 changes: 3 additions & 2 deletions tests/functional/cylc-combination-scripts/02-vr-restart.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
# Test `cylc vr` (Validate Reinstall restart)
# In this case the target workflow is stopped so cylc play is run.


. "$(dirname "$0")/test_header"
set_test_number 6

Expand All @@ -32,8 +31,10 @@ run_ok "setup (install)" \

export WORKFLOW_RUN_DIR="${RUN_DIR}/${WORKFLOW_NAME}"

# It validates and restarts:
# Change something so that reinstall does something material:
echo "# Hello World" >> "flow.cylc"

# It validates and restarts:
# Run VR
run_ok "${TEST_NAME_BASE}-runs" cylc vr "${WORKFLOW_NAME}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ run_ok "setup (vip)" \
--workflow-name "${WORKFLOW_NAME}" \
--no-run-name


# Change source workflow and run vr:

# Cut the runtime section out of the source flow.
head -n 5 > tmp < flow.cylc
cat tmp > flow.cylc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

[runtime]
[[foo]]
script = cylc pause ${WORKFLOW_ID}
script = cylc pause ${CYLC_WORKFLOW_ID}

0 comments on commit 50a676a

Please sign in to comment.