git p4: Squash P4EDITOR in test harness
authorLuke Diamand <luke@diamand.org>
Tue, 24 Apr 2012 08:33:20 +0000 (09:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Apr 2012 21:22:19 +0000 (14:22 -0700)
If P4EDITOR is set in the environment, test behavior could be
unpredictable. Set it explicitly.

Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-git-p4.sh

index b90986c2c98dcf34390d06bd149b62097771e39b..121e38002bc73807649ebcc5df2799f6f35a9c67 100644 (file)
@@ -24,6 +24,7 @@ P4DPORT=$((10669 + ($testid - $git_p4_test_start)))
 
 export P4PORT=localhost:$P4DPORT
 export P4CLIENT=client
+export P4EDITOR=:
 
 db="$TRASH_DIRECTORY/db"
 cli="$TRASH_DIRECTORY/cli"