[GSoC] [PATCH v3 3/3] t9811: Change `grep` to `test_grep` for debug output
- From
Anthony Wang <anthonywang513@gmail.com>
- Date
- Apr 7, 2025, 17:25 UTC
- Message-ID
- <20250407172504.50849-4-anthonywang03@icloud.com>
- In-Reply-To
- <20250407172504.50849-1-anthonywang03@icloud.com>
Change `grep` to `test_grep` to provide helpful debug output in case of test failure by printing contents of the non-matching file.
Signed-off-by: Anthony Wang <anthonywang513@gmail.com> --- t/t9811-git-p4-label-import.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/t9811-git-p4-label-import.sh b/t/t9811-git-p4-label-import.sh index e69dae55dc..e9c2aad2aa 100755 --- a/t/t9811-git-p4-label-import.sh +++ b/t/t9811-git-p4-label-import.sh @@ -96,9 +96,9 @@ test_expect_success 'two labels on the same changelist' ' git p4 sync --import-labels && git tag >output && - grep TAG_F1 output && - grep TAG_F1_1 output && - grep TAG_F1_2 output && + test_grep TAG_F1 output && + test_grep TAG_F1_1 output && + test_grep TAG_F1_2 output && cd main &&
-- 2.39.5 (Apple Git-154)