summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/process.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-05-22 16:38:49 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-05-25 17:25:09 +0000
commit927344b4dc1223e0f455971ef9293c90fb7d3a80 (patch)
tree8226610ffd05b2e6b920bcbc96ea5e656abafb62 /src/osmo_gsm_tester/process.py
parent095d1290a6fc933b26a536f9dcc694ac7989bb3f (diff)
event_loop: Create a global event loop to poll and wait for events
Tweaked-by: nhofmeyr Change-Id: Iaa78bae0f053496377609b24a11ebaef3fd77598
Diffstat (limited to 'src/osmo_gsm_tester/process.py')
-rw-r--r--src/osmo_gsm_tester/process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo_gsm_tester/process.py b/src/osmo_gsm_tester/process.py
index a687de6..e9567b2 100644
--- a/src/osmo_gsm_tester/process.py
+++ b/src/osmo_gsm_tester/process.py
@@ -22,7 +22,7 @@ import time
import subprocess
import signal
-from . import log, test
+from . import log, test, event_loop
from .util import Dir
class Process(log.Origin):
@@ -206,7 +206,7 @@ class Process(log.Origin):
return self.result is not None
def wait(self, timeout=300):
- test.wait(self.terminated, timeout=timeout)
+ event_loop.wait(self, self.terminated, timeout=timeout)
class RemoteProcess(Process):