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():
8383def watch_and_kill (proc ):
8484 """Kill proc if my PPID (etc.) changed - e.g. ssh connection dropped."""
8585 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 ))
8688 while True :
87- sleep (60 )
89+ sleep (interval )
8890 if proc .poll () is not None :
8991 break
9092 if get_proc_ancestors () != gpa :
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ __EOF__
3333log_file=" ${WORKFLOW_RUN_DIR} /log/foo.log"
3434echo " Hello, Mr. Thompson" > " $log_file "
3535
36+ export CYLC_PROC_POLL_INTERVAL=0.5
37+
3638TEST_NAME=" ${TEST_NAME_BASE} -delete"
3739cylc cat-log --mode=tail " $WORKFLOW_NAME " -f foo.log 2>&1 &
3840cat_log_pid=" $! "
You can’t perform that action at this time.
0 commit comments