git p4 test: check for error message in failed test

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>

Pete Wyckoff committed Jun 27, 2012 at 08:00 UTC 4256397aca2b55dfaefbe7639520fbcc34ca93ca
1 file changed +2 -1
t/t9800-git-p4-basic.sh
+2 -1
@@ -45,7 +45,8 @@ test_expect_success 'git p4 sync uninitialized repo' '
45 test_when_finished cleanup_git &&
46 (
47 cd "$git" &&
48 - test_must_fail git p4 sync
48 + test_must_fail git p4 sync 2>errs &&
49 + test_i18ngrep "Perhaps you never did" errs
50 )
51 '
52