aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-07-21 11:43:00 +0200
committerAndre Puschmann <andre@softwareradiosystems.com>2020-07-21 11:43:00 +0200
commitd81b1e4499c2ceb3f8abd4a57b8740d8ecc8d673 (patch)
tree0bcb82d551f8a5bbf5ea217d78f1f4ae61234090 /src/osmo_gsm_tester
parent6039c1ce4fb80998795ecb0cd65f05aadd410a0c (diff)
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
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/core/suite.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class SuiteRun(log.Origin):
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