EventLoop: Fix log error "Origin parent loop" during wait()
Setting the log.ctx manually is not needed anymore and it's actually
harmful since all palces where it was used, a log.Origin already in path
was being passed, causing a origin loop.
Change-Id: I0511b9f7bc59e3c7f2269ff3155d0c95db58d063
diff --git a/src/osmo_gsm_tester/testenv.py b/src/osmo_gsm_tester/testenv.py
index 7ca854b..4709b4c 100644
--- a/src/osmo_gsm_tester/testenv.py
+++ b/src/osmo_gsm_tester/testenv.py
@@ -345,13 +345,13 @@
log = test.log
dbg = test.dbg
err = test.err
- wait = lambda *args, **kwargs: MainLoop.wait(suite_run, *args, **kwargs)
- wait_no_raise = lambda *args, **kwargs: MainLoop.wait_no_raise(suite_run, *args, **kwargs)
- sleep = lambda *args, **kwargs: MainLoop.sleep(suite_run, *args, **kwargs)
+ tenv = TestEnv(suite_run, _test)
+ wait = MainLoop.wait
+ wait_no_raise = MainLoop.wait_no_raise
+ sleep = MainLoop.sleep
poll = MainLoop.poll
Sms = Sms_class
process = process_module
- tenv = TestEnv(suite_run, _test)
prompt = tenv.prompt
return tenv