[LNT] r312057 - views: Fix global_status page failing when there is no data

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 29 15:59:26 PDT 2017


Author: matze
Date: Tue Aug 29 15:59:25 2017
New Revision: 312057

URL: http://llvm.org/viewvc/llvm-project?rev=312057&view=rev
Log:
views: Fix global_status page failing when there is no data

Modified:
    lnt/trunk/lnt/server/ui/views.py

Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=312057&r1=312056&r2=312057&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Tue Aug 29 15:59:25 2017
@@ -1285,8 +1285,9 @@ def v4_global_status():
                    for baseline, run in machine_run_info)
 
         # Compute the worst cell value.
-        row[1] = max(cr.pct_delta
-                     for cr, _ in row[2:])
+        if len(row) > 2:
+            row[1] = max(cr.pct_delta
+                         for cr, _ in row[2:])
 
         test_table.append(row)
 




More information about the llvm-commits mailing list