CSIT-1041: Trending dashboard 82/11782/1
authorTibor Frank <tifrank@cisco.com>
Sun, 15 Apr 2018 16:21:11 +0000 (18:21 +0200)
committerTibor Frank <tifrank@cisco.com>
Sun, 15 Apr 2018 16:21:11 +0000 (18:21 +0200)
Change-Id: I1905039550283d7eb23d02b32bb5fb837215e37e
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_CPTA.py

index e8091c0..c326aa6 100644 (file)
@@ -387,7 +387,7 @@ def _generate_all_charts(spec, input_data):
                 input_data.metadata(job_name, build)["version"]
             )
         except KeyError:
-            pass
+            build_info[build] = ("", "")
 
     # Create the header:
     csv_table = list()
@@ -487,7 +487,11 @@ def _generate_all_charts(spec, input_data):
                             row[idx] = str(round(float(item) / 1000000, 2))
                         except ValueError:
                             pass
-                txt_table.add_row(row)
+                try:
+                    txt_table.add_row(row)
+                except Exception as err:
+                    logging.warning("Error occurred while generating TXT table:"
+                                    "\n{0}".format(err))
             line_nr += 1
         txt_table.align["Build Number:"] = "l"
     with open("{0}.txt".format(file_name), "w") as txt_file:

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.