Change in osmo-gsm-tester[master]: wait_no_raise(): set default args

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/.

neels gerrit-no-reply at lists.osmocom.org
Thu Dec 3 23:56:20 UTC 2020


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/21508 )


Change subject: wait_no_raise(): set default args
......................................................................

wait_no_raise(): set default args

Allows calling from a test script in-place for wait().

Will be used in upcoming handover_2G test suite in
I0b2671304165a1aaae2b386af46fbd8b098e3bd8.

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



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/08/21508/1

diff --git a/src/osmo_gsm_tester/core/event_loop.py b/src/osmo_gsm_tester/core/event_loop.py
index 4092a66..8480e7e 100644
--- a/src/osmo_gsm_tester/core/event_loop.py
+++ b/src/osmo_gsm_tester/core/event_loop.py
@@ -85,7 +85,7 @@
         self.gctx.iteration(may_block)
         self.deferred_handling.handle_queue()
 
-    def wait_no_raise(self, condition, condition_args, condition_kwargs, timeout, timestep):
+    def wait_no_raise(self, condition, condition_args=[], condition_kwargs={}, timeout=300, timestep=1):
         if not timeout or timeout < 0:
             raise log.Error('wait() *must* time out at some point.', timeout=timeout)
         if timestep < 0.1:

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/21508
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I225a175b25c5c148ef5e23d2184f5d1aa2f4188a
Gerrit-Change-Number: 21508
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201203/f3d5db75/attachment.htm>


More information about the gerrit-log mailing list