mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 22:03:58 +00:00
Merge pull request #3881 from pks-t/pks/fix-clar-suite-prefix-computation
clar: fix parsing of test suite prefixes
This commit is contained in:
commit
c550c92228
@ -340,6 +340,12 @@ clar_parse_args(int argc, char **argv)
|
||||
if (strncmp(argument, _clar_suites[j].name, cmplen) == 0) {
|
||||
int exact = (arglen >= suitelen);
|
||||
|
||||
/* Do we have a real suite prefix separated by a
|
||||
* trailing '::' or just a matching substring? */
|
||||
if (arglen > suitelen && (argument[suitelen] != ':'
|
||||
|| argument[suitelen + 1] != ':'))
|
||||
continue;
|
||||
|
||||
++found;
|
||||
|
||||
if (!exact)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user