Mercurial > hg-stable
changeset 45172:04c428e93770
tests: correctly match clang-format version >= 10
The previous regex only matched the first digit, so "clang-format version
10.0.0" was recognized as version 1.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Mon, 20 Jul 2020 17:38:01 +0200 |
parents | 5322e738be0f |
children | 2bc5d1531235 |
files | tests/hghave.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hghave.py Tue Jul 14 13:36:57 2020 -0700 +++ b/tests/hghave.py Mon Jul 20 17:38:01 2020 +0200 @@ -591,7 +591,7 @@ @check("clang-format", "clang-format C code formatter") def has_clang_format(): - m = matchoutput('clang-format --version', br'clang-format version (\d)') + m = matchoutput('clang-format --version', br'clang-format version (\d*)') # style changed somewhere between 4.x and 6.x return m and int(m.group(1)) >= 6