[llvm-commits] [zorg] r141402 - /zorg/trunk/lnt/lnt/tests/nt.py

Daniel Dunbar daniel at zuster.org
Fri Oct 7 12:55:07 PDT 2011


Author: ddunbar
Date: Fri Oct  7 14:55:07 2011
New Revision: 141402

URL: http://llvm.org/viewvc/llvm-project?rev=141402&view=rev
Log:
LNT/nt: Enforce that test modules don't add duplicate tests.

Modified:
    zorg/trunk/lnt/lnt/tests/nt.py

Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=141402&r1=141401&r2=141402&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Fri Oct  7 14:55:07 2011
@@ -647,7 +647,13 @@
         test_samples = []
 
     # Merge in the test samples from all of the test modules.
+    existing_tests = set(s.name for s in test_samples)
     for module,results in test_module_results:
+        for s in results:
+            if s.name in existing_tests:
+                fatal("test module %r added duplicate test: %r" % (
+                        module, s.name))
+            existing_tests.add(s.name)
         test_samples.extend(results)
 
     # Collect the machine and run info.





More information about the llvm-commits mailing list