Change in osmo-gsm-tester[master]: suite: fix runtime error when suite.duration is None

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

srs_andre gerrit-no-reply at lists.osmocom.org
Tue Jul 21 09:43:33 UTC 2020


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


Change subject: suite: fix runtime error when suite.duration is None
......................................................................

suite: fix runtime error when suite.duration is None

report generation failed when duration was not set correctly
and None was returned. Use 0 as duration by default.

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



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

diff --git a/src/osmo_gsm_tester/core/suite.py b/src/osmo_gsm_tester/core/suite.py
index a1d068e..3860d19 100644
--- a/src/osmo_gsm_tester/core/suite.py
+++ b/src/osmo_gsm_tester/core/suite.py
@@ -80,7 +80,7 @@
     def __init__(self, trial, suite_scenario_str, suite_definition, scenarios=[]):
         super().__init__(log.C_TST, suite_scenario_str)
         self.start_timestamp = None
-        self.duration = None
+        self.duration = 0
         self.reserved_resources = None
         self._resource_requirements = None
         self._resource_modifiers = None

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19357
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: Ia654c67bf2dcce432f84e869550c516d8d5a07a0
Gerrit-Change-Number: 19357
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200721/7565d64c/attachment.htm>


More information about the gerrit-log mailing list