Mercurial > hg
changeset 2702:133811a7688b
Allow tests that end in .py and .bat
Revision 6ed46bad9530 disallowed tests that have a '.' in the name, but
that also disallows tests that end in .py and .bat, even though run-tests.py
has some code to special case them.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 21 Jul 2006 01:51:17 -0300 |
parents | 9b8df8dceeed |
children | d32b31e88391 |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Thu Jul 20 11:52:28 2006 -0700 +++ b/tests/run-tests.py Fri Jul 21 01:51:17 2006 -0300 @@ -334,7 +334,9 @@ if len(args) == 0: args = os.listdir(".") for test in args: - if test.startswith("test-") and not '~' in test and not '.' in test: + if (test.startswith("test-") and '~' not in test and + ('.' not in test or test.endswith('.py') or + test.endswith('.bat'))): if not run_one(test): failed += 1 tests += 1