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 @@ -79,8 +79,10 @@ def get_proc_ancestors():
79
79
def watch_and_kill (proc ):
80
80
"""Kill proc if my PPID (etc.) changed - e.g. ssh connection dropped."""
81
81
gpa = get_proc_ancestors ()
82
+ # Allow customising the interval to allow tests to run faster:
83
+ interval = float (os .getenv ('CYLC_PROC_POLL_INTERVAL' , 60 ))
82
84
while True :
83
- sleep (60 )
85
+ sleep (interval )
84
86
if proc .poll () is not None :
85
87
break
86
88
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