mirror of
https://github.com/git/git.git
synced 2024-10-31 22:37:54 +01:00
Merge branch 'maint-1.6.5' into maint
* maint-1.6.5: t8003: check exit code of command and error message separately
This commit is contained in:
commit
216d2e0f3f
1 changed files with 4 additions and 2 deletions
|
@ -158,11 +158,13 @@ EOF
|
|||
'
|
||||
|
||||
test_expect_success 'blame -L with invalid start' '
|
||||
test_must_fail git blame -L5 tres 2>&1 | grep "has only 2 lines"
|
||||
test_must_fail git blame -L5 tres 2>errors &&
|
||||
grep "has only 2 lines" errors
|
||||
'
|
||||
|
||||
test_expect_success 'blame -L with invalid end' '
|
||||
git blame -L1,5 tres 2>&1 | grep "has only 2 lines"
|
||||
test_must_fail git blame -L1,5 tres 2>errors &&
|
||||
grep "has only 2 lines" errors
|
||||
'
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue