comparison tests/run-tests.py @ 19240:b4ecdc451130

run-tests: filter out non-tests from default list
author Matt Mackall <mpm@selenic.com>
date Fri, 24 May 2013 13:31:44 -0500
parents db978c792b02
children a32986dea31a
comparison
equal deleted inserted replaced
19239:db978c792b02 19240:b4ecdc451130
1242 os.umask(022) 1242 os.umask(022)
1243 1243
1244 checktools() 1244 checktools()
1245 1245
1246 if len(args) == 0: 1246 if len(args) == 0:
1247 args = sorted(os.listdir(".")) 1247 args = sorted(t for t in os.listdir(".")
1248 if t.startswith("test-")
1249 and (t.endswith(".py") or t.endswith(".t")))
1248 1250
1249 tests = args 1251 tests = args
1250 1252
1251 if options.random: 1253 if options.random:
1252 random.shuffle(tests) 1254 random.shuffle(tests)