[LNT] r311685 - Don't add baselines if they are not defined

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 24 12:01:07 PDT 2017


Author: cmatthews
Date: Thu Aug 24 12:01:07 2017
New Revision: 311685

URL: http://llvm.org/viewvc/llvm-project?rev=311685&view=rev
Log:
Don't add baselines if they are not defined

If the user has not defined a baseline, and there is not one in the
config, don't add a baseline to the comparison.

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=311685&r1=311684&r2=311685&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Thu Aug 24 12:01:07 2017
@@ -1226,9 +1226,9 @@ def v4_global_status():
         # Choose the "best" run to report on. We want the most recent one with
         # the most recent order.
         run = max(runs, key=lambda r: (r.order, r.start_time))
-
-        machine_run_info.append((baseline, run))
-        reported_run_ids.append(baseline.id)
+        if baseline:
+            machine_run_info.append((baseline, run))
+            reported_run_ids.append(baseline.id)
         reported_run_ids.append(run.id)
 
     # Get the set all tests reported in the recent runs.




More information about the llvm-commits mailing list