Mercurial > hg
comparison tests/run-tests.py @ 20793:60c175c1e708
tests: small refactoring of run-tests' handling of tests list
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 19 Mar 2014 00:19:54 +0100 |
parents | d3d3e94e2910 |
children | 3d1d16b19e7d |
comparison
equal
deleted
inserted
replaced
20792:89059c450c56 | 20793:60c175c1e708 |
---|---|
1178 (options, args) = parseargs() | 1178 (options, args) = parseargs() |
1179 os.umask(022) | 1179 os.umask(022) |
1180 | 1180 |
1181 checktools() | 1181 checktools() |
1182 | 1182 |
1183 if len(args) == 0: | 1183 if not args: |
1184 args = [t for t in os.listdir(".") | 1184 args = os.listdir(".") |
1185 if t.startswith("test-") | 1185 |
1186 and (t.endswith(".py") or t.endswith(".t"))] | 1186 tests = [t for t in args |
1187 | 1187 if t.startswith("test-") |
1188 tests = args | 1188 and (t.endswith(".py") or t.endswith(".t"))] |
1189 | 1189 |
1190 if options.random: | 1190 if options.random: |
1191 random.shuffle(tests) | 1191 random.shuffle(tests) |
1192 else: | 1192 else: |
1193 # keywords for slow tests | 1193 # keywords for slow tests |