]> git.ipfire.org Git - thirdparty/git.git/commit
p7821: fix test_perf invocation for prereqs
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Fri, 28 Mar 2025 17:07:48 +0000 (17:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 29 Mar 2025 03:30:56 +0000 (20:30 -0700)
commitd17cd9768ce5ab66b32a5034d8e172f919fa296d
tree8742a1523b219410a578e6e71f840218623b44f9
parent683c54c999c301c2cd6f715c411407c413b1d84e
p7821: fix test_perf invocation for prereqs

Since 5dccd9155f (t/perf: add iteration setup mechanism to perf-lib,
2022-04-04), perf tests need to declare their prerequisites with
'--prereq', after the test title. p7821 was forgotten in that commit,
such that running that test on a machine where the PCRE prereq is not
satisfied aborts the test with:

    error: bug in the test script: test_wrapper_ needs 2 positional parameters

Fix this by correcting the two 'test_perf' invocations in that test
suite.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p7821-grep-engines-fixed.sh