]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git p4 test: sanitize P4CHARSET
authorkazuki saitoh <ksaitoh560@gmail.com>
Sat, 10 Aug 2013 20:15:12 +0000 (16:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Aug 2013 06:19:08 +0000 (23:19 -0700)
In the tests, p4d is started without using "internationalized
mode".  Make sure this environment variable is unset, otherwise
a mis-matched user setting would break the tests.  The error
message would be "Unicode clients require a unicode enabled server."

[pw: use unset, add commit text]

Signed-off-by: Kazuki Saitoh <ksaitoh560@gmail.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-git-p4.sh

index 2098b9ba053b09b00ed4382aa55ea0802d749d89..ccd918e79ef4fa7962984c5ed4890ec07e92f03a 100644 (file)
@@ -48,7 +48,8 @@ P4DPORT=$((10669 + ($testid - $git_p4_test_start)))
 P4PORT=localhost:$P4DPORT
 P4CLIENT=client
 P4EDITOR=:
-export P4PORT P4CLIENT P4EDITOR
+unset P4CHARSET
+export P4PORT P4CLIENT P4EDITOR P4CHARSET
 
 db="$TRASH_DIRECTORY/db"
 cli="$TRASH_DIRECTORY/cli"