Show More
@@ -605,6 +605,9 b' class Test(object):' | |||||
605 | else: |
|
605 | else: | |
606 | return self.ignore("doesn't match keyword") |
|
606 | return self.ignore("doesn't match keyword") | |
607 |
|
607 | |||
|
608 | if not os.path.basename(self._test.lower()).startswith('test-'): | |||
|
609 | return self.skip('not a test file') | |||
|
610 | ||||
608 | # Remove any previous output files. |
|
611 | # Remove any previous output files. | |
609 | if os.path.exists(self._errpath): |
|
612 | if os.path.exists(self._errpath): | |
610 | os.remove(self._errpath) |
|
613 | os.remove(self._errpath) | |
@@ -1135,8 +1138,6 b' def runone(options, test, count):' | |||||
1135 | err = os.path.join(TESTDIR, test + ".err") |
|
1138 | err = os.path.join(TESTDIR, test + ".err") | |
1136 | lctest = test.lower() |
|
1139 | lctest = test.lower() | |
1137 |
|
1140 | |||
1138 | if not os.path.basename(lctest).startswith("test-"): |
|
|||
1139 | return skip("not a test file") |
|
|||
1140 | for ext, cls, out in testtypes: |
|
1141 | for ext, cls, out in testtypes: | |
1141 | if lctest.endswith(ext): |
|
1142 | if lctest.endswith(ext): | |
1142 | runner = cls |
|
1143 | runner = cls |
General Comments 0
You need to be logged in to leave comments.
Login now