* [PATCH] Test suite: reset TERM to its previous value after testing.
@ 2007-10-26 4:13 Christian Couder
0 siblings, 0 replies; only message in thread
From: Christian Couder @ 2007-10-26 4:13 UTC (permalink / raw)
To: Junio Hamano, Pierre Habouzit; +Cc: git
Using konsole, I get no colored output at the end of "t7005-editor.sh"
without this patch.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
t/t7005-editor.sh | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
This patch should be applied on top of Pierre Habouzit's
"Add some fancy colors in the test library when terminal supports it."
patch.
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 28643b0..01cc0c0 100755
--- a/t/t7005-editor.sh
+++ b/t/t7005-editor.sh
@@ -4,6 +4,8 @@ test_description='GIT_EDITOR, core.editor, and stuff'
. ./test-lib.sh
+OLD_TERM="$TERM"
+
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
do
cat >e-$i.sh <<-EOF
@@ -88,4 +90,6 @@ do
'
done
+TERM="$OLD_TERM"
+
test_done
--
1.5.3.4.1494.g253d
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-26 4:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 4:13 [PATCH] Test suite: reset TERM to its previous value after testing Christian Couder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).