[PATCH 1/4] t/interop: replace bare grep with test_grep
- From
Tyler Cipriani <tyler@tylercipriani.com>
- Date
- Oct 25, 2026, 06:35 UTC
- Message-ID
- <20261025063508.3026136-2-tyler@tylercipriani.com>
- In-Reply-To
- <20261025063508.3026136-1-tyler@tylercipriani.com>
Use test_grep for grep assertions in interop files.
In preparation for combining chainlint and greplint into a single test command, ensure that chainlint and greplint pass on their combined list of shell scripts under test.
Signed-off-by: Tyler Cipriani <tyler@tylercipriani.com> --- t/interop/i5700-protocol-transition.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/t/interop/i5700-protocol-transition.sh b/t/interop/i5700-protocol-transition.sh index 97e8e580ef..b610a64dfc 100755 --- a/t/interop/i5700-protocol-transition.sh +++ b/t/interop/i5700-protocol-transition.sh @@ -24,7 +24,7 @@ test_expect_success "git:// clone with $VERSION_A and protocol v1" ' git.a -C child log -1 --format=%s >actual && git.b -C "$repo" log -1 --format=%s >expect && test_cmp expect actual && - grep "version=1" log + test_grep "version=1" log ' test_expect_success "git:// fetch with $VERSION_A and protocol v1" ' @@ -35,8 +35,8 @@ test_expect_success "git:// fetch with $VERSION_A and protocol v1" ' git.a -C child log -1 --format=%s FETCH_HEAD >actual && test_cmp expect actual && - grep "version=1" log && - ! grep "version 1" log + test_grep "version=1" log && + test_grep ! "version 1" log ' stop_git_daemon @@ -51,7 +51,7 @@ test_expect_success "file:// clone with $VERSION_A and protocol v1" ' git.a -C child2 log -1 --format=%s >actual && git.b -C parent log -1 --format=%s >expect && test_cmp expect actual && - ! grep "version 1" log + test_grep ! "version 1" log ' test_expect_success "file:// fetch with $VERSION_A and protocol v1" ' @@ -62,7 +62,7 @@ test_expect_success "file:// fetch with $VERSION_A and protocol v1" ' git.a -C child2 log -1 --format=%s FETCH_HEAD >actual && test_cmp expect actual && - ! grep "version 1" log + test_grep ! "version 1" log ' test_done
-- 2.47.3