summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-07 21:37:30 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-07 21:00:34 +0000
commit8d16ec73841a0b48c7f685a5073d5afa5f82b82f (patch)
treeedb073477d96e904bcdd872f08f2df7674693d51 /python/vyos
parentf67c73eed92509e4341f24e5075611a11249200e (diff)
downloadvyos-1x-8d16ec73841a0b48c7f685a5073d5afa5f82b82f.tar.gz
vyos-1x-8d16ec73841a0b48c7f685a5073d5afa5f82b82f.zip
smoketest: T5195: fix BasicInterfaceTest tearDown() timeout penalty
Commit ad9bdfc24 ("T5195: add timeout argument to process_named_running()") added a 2*10 seconds penalty for every interface test (dhcp and dhcpv6). This leads to long runs of "make test" after an ISO build. There is no need to wait 10 seconds for a test that checks for a process not running. The timeout is there to give the process some time to startup. (cherry picked from commit 041db49533d57cabfccd319492b85ee0bafdd40c)
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/utils/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/utils/process.py b/python/vyos/utils/process.py
index cd58b4be2..bd0644bc0 100644
--- a/python/vyos/utils/process.py
+++ b/python/vyos/utils/process.py
@@ -204,7 +204,7 @@ def process_running(pid_file):
pid = f.read().strip()
return pid_exists(int(pid))
-def process_named_running(name, cmdline: str=None, timeout=0):
+def process_named_running(name: str, cmdline: str=None, timeout: int=0):
""" Checks if process with given name is running and returns its PID.
If Process is not running, return None
"""