[llvm-commits] [zorg] r151193 - /zorg/trunk/lnt/lnt/server/ui/views.py

Daniel Dunbar daniel at zuster.org
Wed Feb 22 12:37:06 PST 2012


Author: ddunbar
Date: Wed Feb 22 14:37:06 2012
New Revision: 151193

URL: http://llvm.org/viewvc/llvm-project?rev=151193&view=rev
Log:
[lnt/v0.4] lnt.server.ui.views/run overview: Fix test filter regexp and delete some dead code.

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

Modified: zorg/trunk/lnt/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/views.py?rev=151193&r1=151192&r2=151193&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/views.py (original)
+++ zorg/trunk/lnt/lnt/server/ui/views.py Wed Feb 22 14:37:06 2012
@@ -860,14 +860,6 @@
             run, num_comparison_runs))
 
     # Get the test names.
-    test_names = ts.query(ts.Test.name, ts.Test.id).order_by(ts.Test.name).all()
-
-    # Gather all the samples for the runs we are interested in.
-    if compare_to:
-        run_ids = (run.id, compare_to.id)
-    else:
-        run_ids = (run.id,)
-
     test_info = ts.query(ts.Test.name, ts.Test.id).\
         order_by(ts.Test.name).all()
 
@@ -875,9 +867,9 @@
 
     # Filter the list of tests by name, if requested.
     if test_filter_re:
-        test_names = [test
-                      for test in test_names
-                      if test_filter_re.search(test)]
+        test_info = [test
+                     for test in test_info
+                     if test_filter_re.search(test[0])]
 
     return render_template(
         "v4_run.html", ts=ts, run=run, compare_to=compare_to,





More information about the llvm-commits mailing list