aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-06-22 22:49:24 +0200
committerAndre Puschmann <andre@softwareradiosystems.com>2020-07-01 10:52:09 +0200
commit8b27ded7812d28d1509b2718adcacb81200125ae (patch)
tree2f9a9e839d03e5dfcf06c6957df6b4a7c21eec32 /src/osmo_gsm_tester
parent0694c30c8e5f9273d81ddc0f2a66a603404ab18f (diff)
test: append KPI rather than overwrite in set_kpi() method
this allows to call set_kpi() multiple times in one TC Change-Id: I5f68d9e6e1135ee2afa79c9af2ed240d371214c4
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/core/test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/core/test.py b/src/osmo_gsm_tester/core/test.py
index dfbd169..fd3ac04 100644
--- a/src/osmo_gsm_tester/core/test.py
+++ b/src/osmo_gsm_tester/core/test.py
@@ -143,7 +143,10 @@ class Test(log.Origin):
def set_kpis(self, kpis):
if not isinstance(kpis, dict):
raise log.Error('Expected dictionary in toplevel kpis')
- self._kpis = kpis
+ if isinstance(self._kpis, dict):
+ self._kpis.update(kpis)
+ else:
+ self._kpis = kpis
def kpis(self):
return self._kpis