Report: Remove DNV testbeds
[csit.git] / resources / tools / presentation / input_data_parser.py
index 1f175bc..6bb15d7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2022 Cisco and/or its affiliates.
+# Copyright (c) 2023 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -159,10 +159,6 @@ class ExecutionChecker(ResultVisitor):
         :type process_oper: bool
         """
 
-        # Save the provided metadata
-        for key, val in metadata.items():
-            self._data["metadata"][key] = val
-
         # Mapping of TCs long names
         self._mapping = mapping
 
@@ -205,6 +201,10 @@ class ExecutionChecker(ResultVisitor):
             "tests": dict()
         }
 
+        # Save the provided metadata
+        for key, val in metadata.items():
+            self._data["metadata"][key] = val
+
     @property
     def data(self):
         """Getter - Data parsed from the XML file.
@@ -1098,11 +1098,13 @@ class ExecutionChecker(ResultVisitor):
         if self._kw_name is None:
             return
         elif self._kw_name.count("Run Telemetry On All Duts"):
-            self._telemetry_kw_counter += 1
-            self._get_telemetry(msg)
+            if self._process_oper:
+                self._telemetry_kw_counter += 1
+                self._get_telemetry(msg)
         elif self._kw_name.count("Show Runtime On All Duts"):
-            self._sh_run_counter += 1
-            self._get_show_run(msg)
+            if self._process_oper:
+                self._sh_run_counter += 1
+                self._get_show_run(msg)
         elif self._kw_name.count("Show Vpp Version On All Duts"):
             if not self._version:
                 self._get_vpp_version(msg)