Mercurial > public > mercurial-scm > hg
diff tests/run-tests.py @ 38245:f2e3196a34f9
run-tests: follow-up on the test-case format
It turns out the original regex doesn't support real test cases names like the
one Mercurial is using. Update the regex to being able to precisely select
them on the command line.
Differential Revision: https://phab.mercurial-scm.org/D3699
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 07 Jun 2018 21:09:16 +0200 |
parents | b865bba56db1 |
children | 47b9240615ca |
line wrap: on
line diff
--- a/tests/run-tests.py Fri May 04 12:43:15 2018 +0900 +++ b/tests/run-tests.py Thu Jun 07 21:09:16 2018 +0200 @@ -120,7 +120,7 @@ } class TestRunnerLexer(lexer.RegexLexer): - testpattern = r'[\w-]+\.(t|py)(#[\w-]+)?' + testpattern = r'[\w-]+\.(t|py)(#[^\s]+)?' tokens = { 'root': [ (r'^Skipped', token.Generic.Skipped, 'skipped'), @@ -2646,7 +2646,7 @@ expanded_args.append(arg) args = expanded_args - testcasepattern = re.compile(r'([\w-]+\.t|py)(#([\w-])+)') + testcasepattern = re.compile(r'([\w-]+\.t|py)(#([^\s]+))') tests = [] for t in args: case = None