Skip to content

Commit

Permalink
git p4 test: check for error message in failed test
Browse files Browse the repository at this point in the history
Make sure the test fails for the expected reason.

Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Pete Wyckoff authored and Junio C Hamano committed Jun 28, 2012
1 parent a64f732 commit 4256397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/t9800-git-p4-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
'

Expand Down

0 comments on commit 4256397

Please sign in to comment.