Skip to content

Commit 99be84d

Browse files
committed
ensure that workflow state is used correctly
1 parent 6f3a79c commit 99be84d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/functional/cylc-cat-log/04-local-tail.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Test "cylc cat-log" with a custom tail /command
1919
. "$(dirname "$0")/test_header"
2020
#-------------------------------------------------------------------------------
21-
set_test_number 3
21+
set_test_number 4
2222
install_workflow "${TEST_NAME_BASE}" "${TEST_NAME_BASE}"
2323
create_test_global_config "" "
2424
[platforms]
@@ -29,8 +29,8 @@ create_test_global_config "" "
2929
TEST_NAME="${TEST_NAME_BASE}-validate"
3030
run_ok "${TEST_NAME}" cylc validate "${WORKFLOW_NAME}"
3131
workflow_run_ok "${TEST_NAME_BASE}-run" cylc play "${WORKFLOW_NAME}"
32-
cylc workflow-state "${WORKFLOW_NAME}//1/foo:started" --interval=1
33-
sleep 1
32+
run_ok "wait-for-task-foo-start" \
33+
cylc workflow-state "${WORKFLOW_NAME}//1/foo:started" --interval=1 --triggers
3434
TEST_NAME=${TEST_NAME_BASE}-cat-log
3535
cylc cat-log "${WORKFLOW_NAME}//1/foo" -f o -m t > "${TEST_NAME}.out"
3636
grep_ok "HELLO from foo 1" "${TEST_NAME}.out"

tests/functional/restart/38-auto-restart-stopping.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#-------------------------------------------------------------------------------
1818
export REQUIRE_PLATFORM='loc:remote fs:shared runner:background'
1919
. "$(dirname "$0")/test_header"
20-
set_test_number 2
20+
set_test_number 3
2121
if ${CYLC_TEST_DEBUG:-false}; then ERR=2; else ERR=1; fi
2222
#-------------------------------------------------------------------------------
2323
# ensure that workflows don't get auto stop-restarted if they are already stopping
@@ -52,7 +52,8 @@ ${BASE_GLOBAL_CONFIG}
5252
"
5353

5454
run_ok "${TEST_NAME}-workflow-start" cylc play "${WORKFLOW_NAME}" --host=localhost
55-
cylc workflow-state "${WORKFLOW_NAME}//1/foo:running" --interval=1 --max-polls=20 >& $ERR
55+
run_ok "wait-for-task-foo-to-start" \
56+
cylc workflow-state "${WORKFLOW_NAME}//1/foo:started" --triggers --interval=1 --max-polls=20 >& $ERR
5657

5758
# condemn localhost
5859
create_test_global_config '' "

0 commit comments

Comments
 (0)