Convert "! git" to "test_must_fail git"
test_must_fail will account for segfaults in git, so it should be used instead of "! git" This patch does not change any of the commands that use pipes. Signed-off-by: Jared Hance <jaredhance@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
c5212b87da
commit
ce14e0b264
@ -41,7 +41,7 @@ test_expect_success 'modify hidden file in SVN repo' '
|
||||
test_expect_success 'fetch fails on modified hidden file' '
|
||||
( cd g &&
|
||||
git svn find-rev refs/remotes/git-svn > ../expect &&
|
||||
! git svn fetch 2> ../errors &&
|
||||
test_must_fail git svn fetch 2> ../errors &&
|
||||
git svn find-rev refs/remotes/git-svn > ../expect2 ) &&
|
||||
fgrep "not found in commit" errors &&
|
||||
test_cmp expect expect2
|
||||
|
||||
Reference in New Issue
Block a user