File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
tests/functional/cylc-cat-log Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,10 @@ def get_proc_ancestors():
83
83
def watch_and_kill (proc ):
84
84
"""Kill proc if my PPID (etc.) changed - e.g. ssh connection dropped."""
85
85
gpa = get_proc_ancestors ()
86
+ # Allow customising the interval to allow tests to run faster:
87
+ interval = float (os .getenv ('CYLC_PROC_POLL_INTERVAL' , 60 ))
86
88
while True :
87
- sleep (60 )
89
+ sleep (interval )
88
90
if proc .poll () is not None :
89
91
break
90
92
if get_proc_ancestors () != gpa :
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ __EOF__
33
33
log_file=" ${WORKFLOW_RUN_DIR} /log/foo.log"
34
34
echo " Hello, Mr. Thompson" > " $log_file "
35
35
36
+ export CYLC_PROC_POLL_INTERVAL=0.5
37
+
36
38
TEST_NAME=" ${TEST_NAME_BASE} -delete"
37
39
cylc cat-log --mode=tail " $WORKFLOW_NAME " -f foo.log 2>&1 &
38
40
cat_log_pid=" $! "
You can’t perform that action at this time.
0 commit comments