filter cpp tests based on module name
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 9 Apr 2009 11:49:14 +0000 (04:49 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 9 Apr 2009 11:49:14 +0000 (04:49 -0700)
runtests.py

index d1ee89713b9f21f0c660eda108c7a7db9e3c78f2..1406ebd5bba354b0a20a2f04597784efabb0b4ad 100644 (file)
@@ -147,6 +147,9 @@ class TestBuilder(object):
             languages = self.languages[:1]
         else:
             languages = self.languages
+        if 'cpp' in module and 'c' in languages:
+            languages = list(languages)
+            languages.remove('c')
         tests = [ self.build_test(test_class, path, workdir, module,
                                   language, expect_errors)
                   for language in languages ]