# HG changeset patch # User Matt Mackall # Date 1369420304 18000 # Node ID db145eefc724f322f1dab7905e733cd674a75574 # Parent afafc1812f7b31594a563094ecc1dc6b76f17c81 run-tests: filter out non-tests from default list [ original upstream message ] diff -r afafc1812f7b -r db145eefc724 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