Skip to content

Commit 216d2e0

Browse files
committed
Merge branch 'maint-1.6.5' into maint
* maint-1.6.5: t8003: check exit code of command and error message separately
2 parents 57ffc0e + 33f0ea4 commit 216d2e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/t8003-blame.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,13 @@ EOF
158158
'
159159

160160
test_expect_success 'blame -L with invalid start' '
161-
test_must_fail git blame -L5 tres 2>&1 | grep "has only 2 lines"
161+
test_must_fail git blame -L5 tres 2>errors &&
162+
grep "has only 2 lines" errors
162163
'
163164

164165
test_expect_success 'blame -L with invalid end' '
165-
git blame -L1,5 tres 2>&1 | grep "has only 2 lines"
166+
test_must_fail git blame -L1,5 tres 2>errors &&
167+
grep "has only 2 lines" errors
166168
'
167169

168170
test_done

0 commit comments

Comments
 (0)