aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2019-04-28 11:38:21 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2019-04-28 11:44:41 +0100
commit839d6fa4050014a0807b9778c16a6660528d4109 (patch)
tree7cf243f4c86f55216ef156e3a701707e90817da1
parent9443a3b45d27d75f5a27e371b12fd02393430da5 (diff)
virtual: The completion ratio is success / success+failure
Fix the stats code to calculate the real completion ratio. Change-Id: I1b8f32dfbe8faa4c255a8d2d9806303fc8e5933b
-rw-r--r--suites/nitb_netreg_mass/register_default_mass.py2
-rw-r--r--suites/nitb_netreg_mass/suite.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/suites/nitb_netreg_mass/register_default_mass.py b/suites/nitb_netreg_mass/register_default_mass.py
index 76c53f1..306eb81 100644
--- a/suites/nitb_netreg_mass/register_default_mass.py
+++ b/suites/nitb_netreg_mass/register_default_mass.py
@@ -38,7 +38,7 @@ ms_driver.print_stats()
stats = ms_driver.get_stats()
if len(modems) > 0 and stats.num_completed < 1:
raise Exception("No run completed.")
-completion_ratio = stats.num_attempted / stats.num_completed
+completion_ratio = stats.num_completed / stats.num_attempted
# Verify that 99% of LUs completed.
if completion_ratio < 0.99:
diff --git a/suites/nitb_netreg_mass/suite.conf b/suites/nitb_netreg_mass/suite.conf
index 44de0b6..bb1585b 100644
--- a/suites/nitb_netreg_mass/suite.conf
+++ b/suites/nitb_netreg_mass/suite.conf
@@ -8,4 +8,4 @@ resources:
type: osmo-mobile
defaults:
- timeout: 40s
+ timeout: 50s