run error test cases only for one target language
authorStefan Behnel <scoder@users.berlios.de>
Wed, 3 Sep 2008 11:24:41 +0000 (13:24 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 3 Sep 2008 11:24:41 +0000 (13:24 +0200)
runtests.py

index 228f7126f2eff79aca118c3c78ac8a830001f3d9..e902035de7393a1685b23e0d0a1f2f2731cf0b94 100644 (file)
@@ -117,9 +117,13 @@ class TestBuilder(object):
         return suite
 
     def build_tests(self, test_class, path, workdir, module, expect_errors):
+        if expect_errors:
+            languages = self.languages[:1]
+        else:
+            languages = self.languages
         tests = [ self.build_test(test_class, path, workdir, module,
                                   language, expect_errors)
-                  for language in self.languages ]
+                  for language in languages ]
         return tests
 
     def build_test(self, test_class, path, workdir, module,