summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9e3b70)
raw | patch | inline | side by side (parent: d9e3b70)
author | Christian Couder <chriscool@tuxfamily.org> | |
Sun, 6 Apr 2008 17:08:50 +0000 (19:08 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Apr 2008 03:02:43 +0000 (20:02 -0700) |
In commit 15387e3 (Test suite: reset TERM to its previous value after
testing., 2007-10-26), I added a workaround to reset TERM to its previous
value before the "test_done" at the end of "t7005-editor.sh" because
otherwise "test_done" would have printed the test result with a bad TERM
env variable (this resulted in output with no color on konsole).
But since commit c2116a1 (test-lib: fix TERM to dumb for test
repeatability, 2008-03-06), colored output is printed in a subshell with
TERM reset to its original value so the earlier workaround is not needed
anymore.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
testing., 2007-10-26), I added a workaround to reset TERM to its previous
value before the "test_done" at the end of "t7005-editor.sh" because
otherwise "test_done" would have printed the test result with a bad TERM
env variable (this resulted in output with no color on konsole).
But since commit c2116a1 (test-lib: fix TERM to dumb for test
repeatability, 2008-03-06), colored output is printed in a subshell with
TERM reset to its original value so the earlier workaround is not needed
anymore.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7005-editor.sh | patch | blob | history |
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 6a74b3acfda6774d7996cf5787e9858654357328..2d919d69ef110408b820c76185d6b8da63ea183e 100755 (executable)
--- a/t/t7005-editor.sh
+++ b/t/t7005-editor.sh
. ./test-lib.sh
-OLD_TERM="$TERM"
-
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
do
cat >e-$i.sh <<-EOF
'
-TERM="$OLD_TERM"
-
test_done