From c43d5cd08a1aabf9143198f1554ed834840d057b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 3 Sep 2008 13:24:41 +0200 Subject: [PATCH] run error test cases only for one target language --- runtests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 228f7126..e902035d 100644 --- a/runtests.py +++ b/runtests.py @@ -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, -- 2.26.2