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@xxxxxxxxx> --- 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)