git p4 test: fix badp4dir test
authorPete Wyckoff <pw@padd.com>
Wed, 27 Jun 2012 12:01:03 +0000 (08:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jun 2012 04:06:35 +0000 (21:06 -0700)
commita0327c0edc7ada60ae2af5ec8daa5dcfcacd095d
tree38174de954b8a413be05d9c803c808dbf59a44f5
parent9b6513ac6fde1552a9a3d606be704eb5ded43ac0
git p4 test: fix badp4dir test

The construct used to get the return code was flawed, in that
errors in the &&-chain before the semicolon were not caught.  Use
the standard test_expect_code instead.

Set PATH in a subshell instead of relying on the bashism of
setting it just for a single command.

And fix the grep line so it doesn't worry about grep segfaults,
and doesn't fail for i18n issues.

Reported-by: Johannes Sixt <j.sixt@viscovery.net>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9800-git-p4-basic.sh