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 Hofmeyr gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/2513 on timeout, raise dedicated Timeout exception Change-Id: I085a52194dde0f5e6dd845ffde1197f7dc83b306 --- M src/osmo_gsm_tester/suite.py 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/13/2513/1 diff --git a/src/osmo_gsm_tester/suite.py b/src/osmo_gsm_tester/suite.py index a886de4..4a99731 100644 --- a/src/osmo_gsm_tester/suite.py +++ b/src/osmo_gsm_tester/suite.py @@ -24,6 +24,9 @@ from . import config, log, template, util, resource, schema, ofono_client, osmo_nitb from . import test +class Timeout(Exception): + pass + class SuiteDefinition(log.Origin): '''A test suite reserves resources for a number of tests. Each test requires a specific number of modems, BTSs etc., which are @@ -262,7 +265,7 @@ def wait(self, condition, *condition_args, timeout=300, timestep=1, **condition_kwargs): if not self._wait(condition, condition_args, condition_kwargs, timeout, timestep): - raise RuntimeError('Timeout expired') + raise Timeout('Timeout expired') def sleep(self, seconds): assert seconds > 0. -- To view, visit https://gerrit.osmocom.org/2513 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I085a52194dde0f5e6dd845ffde1197f7dc83b306 Gerrit-PatchSet: 1 Gerrit-Project: osmo-gsm-tester Gerrit-Branch: master Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>