CSIT-1179: Switch MRR to multiple trials 96/14596/2
authorVratko Polak <vrpolak@cisco.com>
Fri, 31 Aug 2018 11:18:52 +0000 (13:18 +0200)
committerVratko Polak <vrpolak@cisco.com>
Mon, 10 Sep 2018 10:39:36 +0000 (12:39 +0200)
But keep the detection in PAL using only average, not size nor stdev.

Change-Id: I07092bdeb892c871550265757fd2846a36fbb352
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/tools/presentation/input_data_parser.py
tests/__init__.robot

index 340b7dc..a35a454 100644 (file)
@@ -765,8 +765,12 @@ class ExecutionChecker(ResultVisitor):
                     items_str = groups.group(1)
                     items_float = [float(item.strip()) for item
                                    in items_str.split(",")]
                     items_str = groups.group(1)
                     items_float = [float(item.strip()) for item
                                    in items_str.split(",")]
-                    test_result["result"]["receive-rate"] = \
-                        AvgStdevMetadataFactory.from_data(items_float)
+                    metadata = AvgStdevMetadataFactory.from_data(items_float)
+                    # Next two lines have been introduced in CSIT-1179,
+                    # to be removed in CSIT-1180.
+                    metadata.size = 1
+                    metadata.stdev = 0.0
+                    test_result["result"]["receive-rate"] = metadata
                 else:
                     groups = re.search(self.REGEX_MRR, test.message)
                     test_result["result"]["receive-rate"] = \
                 else:
                     groups = re.search(self.REGEX_MRR, test.message)
                     test_result["result"]["receive-rate"] = \
index 106270f..61301b4 100644 (file)
@@ -27,5 +27,5 @@
 | | ... | perf_trial_multiplicity - Number of trials to execute in MRR test.
 | | ... | perf_trial_duration - Duration of one trial in MRR test.
 | | ...
 | | ... | perf_trial_multiplicity - Number of trials to execute in MRR test.
 | | ... | perf_trial_duration - Duration of one trial in MRR test.
 | | ...
-| | Ensure Global Variable | perf_trial_multiplicity | 1
-| | Ensure Global Variable | perf_trial_duration | 10
+| | Ensure Global Variable | perf_trial_multiplicity | 10
+| | Ensure Global Variable | perf_trial_duration | 1