# HG changeset patch # User Matt Mackall # Date 2013-05-24 18:31:44 # Node ID b4ecdc45113075296f1d309721d7b09eb5ecd2e2 # Parent db978c792b02174166dde8e9aa9fdf3643c14712 run-tests: filter out non-tests from default list diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1244,7 +1244,9 @@ def main(): 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