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

Daniel Dunbar daniel at zuster.org
Thu Jul 29 19:56:59 PDT 2010


Author: ddunbar
Date: Thu Jul 29 21:56:59 2010
New Revision: 109846

URL: http://llvm.org/viewvc/llvm-project?rev=109846&view=rev
Log:
LNT/simple: Add explicit support for subtest results, so we don't get spurious compile failure test results for them.

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=109846&r1=109845&r2=109846&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Thu Jul 29 21:56:59 2010
@@ -362,6 +362,15 @@
         if opts.only_test is not None:
             program = os.path.join(opts.only_test, program)
         test_base_name = '%s.%s' % (test_namespace, program.replace('.','_'))
+
+        # Check if this is a subtest result, in which case we ignore missing
+        # values.
+        if '_Subtest_' in test_base_name:
+            is_subtest = True
+            test_base_name = test_base_name.replace('_Subtest_', '.')
+        else:
+            is_subtest = False
+
         for info in sample_keys:
             if len(info) == 3:
                 name,key,tname = info
@@ -378,6 +387,8 @@
 
             # FIXME: Move to simpler and more succinct format, using .failed.
             if success_value == '*':
+                if is_subtest:
+                    continue
                 status_value = lnt.testing.FAIL
             elif success_value == 'xfail':
                 status_value = lnt.testing.XFAIL





More information about the llvm-commits mailing list