Mercurial > hg-stable
changeset 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 |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Fri May 24 13:23:19 2013 -0500 +++ b/tests/run-tests.py Fri May 24 13:31:44 2013 -0500 @@ -1244,7 +1244,9 @@ checktools() if len(args) == 0: - args = sorted(os.listdir(".")) + args = sorted(t for t in os.listdir(".") + if t.startswith("test-") + and (t.endswith(".py") or t.endswith(".t"))) tests = args