summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-11 19:01:54 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-11 19:32:54 (GMT)
commit8ff99e7417fcbff67d2c31445671fa97e44c95e7 (patch)
tree133e202e99a5454c6b33a94564984b59e7aef5be /t/test-lib.sh
parent55b7835e1b81a6debc7648149d2b8a4c5c64ddba (diff)
downloadgit-8ff99e7417fcbff67d2c31445671fa97e44c95e7.zip
git-8ff99e7417fcbff67d2c31445671fa97e44c95e7.tar.gz
git-8ff99e7417fcbff67d2c31445671fa97e44c95e7.tar.bz2
tests: Set EDITOR=: and VISUAL=: globally
This way we don't have to remember to set it for each test; and if we forget, we won't cause interactive editors to be spawned for non-interactive tests. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 05f6e79..b0d7990 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -9,6 +9,8 @@ LC_ALL=C
PAGER=cat
TZ=UTC
export LANG LC_ALL PAGER TZ
+EDITOR=:
+VISUAL=:
unset AUTHOR_DATE
unset AUTHOR_EMAIL
unset AUTHOR_NAME
@@ -30,6 +32,7 @@ unset SHA1_FILE_DIRECTORIES
unset SHA1_FILE_DIRECTORY
export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
+export EDITOR VISUAL
# Each test should start with something like this, after copyright notices:
#