# HG changeset patch # User Matt Mackall # Date 1369420304 18000 # Node ID b4ecdc45113075296f1d309721d7b09eb5ecd2e2 # Parent db978c792b02174166dde8e9aa9fdf3643c14712 run-tests: filter out non-tests from default list diff -r db978c792b02 -r b4ecdc451130 tests/run-tests.py --- 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