From: Pete Wyckoff Date: Wed, 27 Jun 2012 12:00:59 +0000 (-0400) Subject: git p4 test: check for error message in failed test X-Git-Tag: v1.7.12-rc0~51^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4256397aca2b55dfaefbe7639520fbcc34ca93ca;p=thirdparty%2Fgit.git git p4 test: check for error message in failed test Make sure the test fails for the expected reason. Signed-off-by: Pete Wyckoff Signed-off-by: Junio C Hamano --- diff --git a/t/t9800-git-p4-basic.sh b/t/t9800-git-p4-basic.sh index 7401c21562..84676a114e 100755 --- a/t/t9800-git-p4-basic.sh +++ b/t/t9800-git-p4-basic.sh @@ -45,7 +45,8 @@ test_expect_success 'git p4 sync uninitialized repo' ' test_when_finished cleanup_git && ( cd "$git" && - test_must_fail git p4 sync + test_must_fail git p4 sync 2>errs && + test_i18ngrep "Perhaps you never did" errs ) '