From patchwork Mon Jul 1 19:17:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: run-tests: stop search for keywords when one is found From: Simon Heimberg X-Patchwork-Id: 1780 Message-Id: To: Mercurial-devel Date: Mon, 01 Jul 2013 21:17:24 +0200 # HG changeset patch # User simon@laptop-tosh # Date 1372706098 -7200 # Node ID da4d8d0e9cde11e58a4d755cbe833de3c3766bf6 # Parent db085df7e5f460e0b7b9855e0b6955efbe8bd348 run-tests: stop search for keywords when one is found only one will match diff -r db085df7e5f4 -r da4d8d0e9cde tests/run-tests.py --- a/tests/run-tests.py Mon Jul 01 20:51:21 2013 +0200 +++ b/tests/run-tests.py Mon Jul 01 21:14:58 2013 +0200 @@ -1167,6 +1167,7 @@ for kw in slow: if kw in f: val *= 10 + break return val tests.sort(key=sortkey)