From: Vratko Polak Date: Fri, 31 Aug 2018 11:18:52 +0000 (+0200) Subject: CSIT-1179: Switch MRR to multiple trials X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=5f1749877b1fbd57c616933625aede0fb1243db7 CSIT-1179: Switch MRR to multiple trials But keep the detection in PAL using only average, not size nor stdev. Change-Id: I07092bdeb892c871550265757fd2846a36fbb352 Signed-off-by: Vratko Polak --- diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py index 340b7dc372..a35a454aa2 100644 --- a/resources/tools/presentation/input_data_parser.py +++ b/resources/tools/presentation/input_data_parser.py @@ -765,8 +765,12 @@ class ExecutionChecker(ResultVisitor): 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"] = \ diff --git a/tests/__init__.robot b/tests/__init__.robot index 106270f478..61301b4ec2 100644 --- a/tests/__init__.robot +++ b/tests/__init__.robot @@ -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. | | ... -| | 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