mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
test-runner: allow infinite process wait
subprocess.Popen's wait() method was overwritten to be non-blocking but in certain circumstances you do want to wait forever. Fix this to allow timeout=None, which calls the parent wait() method directly.
This commit is contained in:
parent
c57a15d21c
commit
5692dcf9a0
@ -246,6 +246,10 @@ class Process(subprocess.Popen):
|
|||||||
|
|
||||||
# Override wait() so it can do so non-blocking
|
# Override wait() so it can do so non-blocking
|
||||||
def wait(self, timeout=10):
|
def wait(self, timeout=10):
|
||||||
|
if timeout == None:
|
||||||
|
super().wait()
|
||||||
|
return
|
||||||
|
|
||||||
Namespace.non_block_wait(self.__wait, timeout, 1)
|
Namespace.non_block_wait(self.__wait, timeout, 1)
|
||||||
self._cleanup()
|
self._cleanup()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user