6937: RunAllTests.py skips some tests
svn: r22722
This commit is contained in:
parent
7887ce4403
commit
2081de473d
@ -48,7 +48,7 @@ def make_parser():
|
|||||||
def getTestSuites():
|
def getTestSuites():
|
||||||
# Sorry about this line, but it is the easiest way of doing it.
|
# Sorry about this line, but it is the easiest way of doing it.
|
||||||
# It just walks the filetree from '.' downwards and returns
|
# It just walks the filetree from '.' downwards and returns
|
||||||
# a tuple per directory of (dirpatch,filelist) if the directory
|
# a tuple per directory of (dirpath,filelist) if the directory
|
||||||
# contains any test files.
|
# contains any test files.
|
||||||
|
|
||||||
paths = [(f[0],f[2]) for f in os.walk('.') \
|
paths = [(f[0],f[2]) for f in os.walk('.') \
|
||||||
@ -62,7 +62,7 @@ def getTestSuites():
|
|||||||
perf_suites = []
|
perf_suites = []
|
||||||
for module in test_modules:
|
for module in test_modules:
|
||||||
if module[-8:] != "_Test.py":
|
if module[-8:] != "_Test.py":
|
||||||
break
|
continue
|
||||||
mod = __import__(module[:-3])
|
mod = __import__(module[:-3])
|
||||||
test_suites.append(mod.testSuite())
|
test_suites.append(mod.testSuite())
|
||||||
try:
|
try:
|
||||||
@ -106,8 +106,5 @@ if __name__ == '__main__':
|
|||||||
logger.setLevel(logging.ERROR)
|
logger.setLevel(logging.ERROR)
|
||||||
console.setLevel(logging.ERROR)
|
console.setLevel(logging.ERROR)
|
||||||
|
|
||||||
|
tests = perfTests() if options.performance else allTheTests()
|
||||||
if options.performance:
|
unittest.TextTestRunner(verbosity=options.verbose_level).run(tests)
|
||||||
unittest.TextTestRunner(verbosity=options.verbose_level).run(perfTests())
|
|
||||||
else:
|
|
||||||
unittest.TextTestRunner(verbosity=options.verbose_level).run(allTheTests())
|
|
||||||
|
Loading…
Reference in New Issue
Block a user