]> Kevux Git Server - rit/commit
t3700: use test_grep helper for better diagnostics
authorSiddharth Shrimali <r.siddharth.shrimali@gmail.com>
Tue, 3 Mar 2026 20:40:29 +0000 (02:10 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Mar 2026 21:29:28 +0000 (13:29 -0800)
commit0d6bb8b541b0bd049599c29711e2c75ca5f17b07
tree8823ae93a335ed92cd57ff8c63b731040daa6d1e
parentfc2ead0053d31735ac4a02c370c5c2b6dbaf2bbe
t3700: use test_grep helper for better diagnostics

Replace 'grep' and '! grep' invocations with 'test_grep' and
'test_grep !'. This provides better debugging output if tests fail
in the future, as 'test_grep' will automatically print the
contents of the file when a check fails.

While at it, update any remaining instances of 'grep' to 'test_grep'
that were missed in the previous versions to ensure that the entire
file is consistent with modern project style.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Siddharth Shrimali <r.siddharth.shrimali@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3700-add.sh