Patchwork run-tests: stop search for keywords when one is found

login
register
mail settings
Submitter Simon Heimberg
Date July 1, 2013, 7:17 p.m.
Message ID <da4d8d0e9cde11e58a4d.1372706244@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/1780/
State Changes Requested
Delegated to: Augie Fackler
Headers show

Comments

Simon Heimberg - July 1, 2013, 7:17 p.m.
# 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

Patch

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)