PAL: Local mode uses xml file name as a build number
[csit.git] / resources / tools / presentation / input_data_parser.py
index 9e460f9..cd9c1a2 100644 (file)
@@ -1100,6 +1100,7 @@ class ExecutionChecker(ResultVisitor):
                     # Use whole list in CSIT-1180.
                     stats = jumpavg.AvgStdevStats.for_runs(items_float)
                     test_result[u"result"][u"receive-rate"] = stats.avg
+                    test_result[u"result"][u"receive-stdev"] = stats.stdev
                 else:
                     groups = re.search(self.REGEX_MRR, test.message)
                     test_result[u"result"][u"receive-rate"] = \
@@ -1593,6 +1594,11 @@ class InputData:
         if not isfile(local_file):
             raise PresentationError(f"The file {local_file} does not exist.")
 
+        try:
+            build_nr = int(local_file.split(u"/")[-1].split(u".")[0])
+        except (IndexError, ValueError):
+            pass
+
         build = {
             u"build": build_nr,
             u"status": u"failed",