File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 18
18
# Test "cylc cat-log" with a custom tail /command
19
19
. " $( dirname " $0 " ) /test_header"
20
20
# -------------------------------------------------------------------------------
21
- set_test_number 3
21
+ set_test_number 4
22
22
install_workflow " ${TEST_NAME_BASE} " " ${TEST_NAME_BASE} "
23
23
create_test_global_config " " "
24
24
[platforms]
@@ -29,8 +29,8 @@ create_test_global_config "" "
29
29
TEST_NAME=" ${TEST_NAME_BASE} -validate"
30
30
run_ok " ${TEST_NAME} " cylc validate " ${WORKFLOW_NAME} "
31
31
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
34
34
TEST_NAME=${TEST_NAME_BASE} -cat-log
35
35
cylc cat-log " ${WORKFLOW_NAME} //1/foo" -f o -m t > " ${TEST_NAME} .out"
36
36
grep_ok " HELLO from foo 1" " ${TEST_NAME} .out"
Original file line number Diff line number Diff line change 17
17
# -------------------------------------------------------------------------------
18
18
export REQUIRE_PLATFORM=' loc:remote fs:shared runner:background'
19
19
. " $( dirname " $0 " ) /test_header"
20
- set_test_number 2
20
+ set_test_number 3
21
21
if ${CYLC_TEST_DEBUG:- false} ; then ERR=2; else ERR=1; fi
22
22
# -------------------------------------------------------------------------------
23
23
# ensure that workflows don't get auto stop-restarted if they are already stopping
@@ -52,7 +52,8 @@ ${BASE_GLOBAL_CONFIG}
52
52
"
53
53
54
54
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
56
57
57
58
# condemn localhost
58
59
create_test_global_config ' ' "
You can’t perform that action at this time.
0 commit comments