Change in osmo-gsm-tester[master]: event_loop: Log parameters during wait timeout exception

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon May 28 13:33:02 UTC 2018


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/9348 )

Change subject: event_loop: Log parameters during wait timeout exception
......................................................................

event_loop: Log parameters during wait timeout exception

Change-Id: I1cf104392bfd11ad263264738eb4d8fa60550a5d
---
M src/osmo_gsm_tester/event_loop.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/osmo_gsm_tester/event_loop.py b/src/osmo_gsm_tester/event_loop.py
index 64a110d..0f647c2 100644
--- a/src/osmo_gsm_tester/event_loop.py
+++ b/src/osmo_gsm_tester/event_loop.py
@@ -109,7 +109,7 @@
     def wait(self, log_obj, condition, *condition_args, timeout=300, timestep=1, **condition_kwargs):
         if not self.wait_no_raise(log_obj, condition, condition_args, condition_kwargs, timeout, timestep):
             log.ctx(log_obj)
-            raise log.Error('Wait timeout')
+            raise log.Error('Wait timeout', condition=condition, timeout=timeout, timestep=timestep)
 
     def sleep(self, log_obj, seconds):
         assert seconds > 0.

-- 
To view, visit https://gerrit.osmocom.org/9348
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1cf104392bfd11ad263264738eb4d8fa60550a5d
Gerrit-Change-Number: 9348
Gerrit-PatchSet: 3
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180528/4d296ee6/attachment.htm>


More information about the gerrit-log mailing list