@matheusbsbs / matheus-bagliano / commits / 15387e32ff
Fork 0

Test suite: reset TERM to its previous value after testing.

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> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed Oct 26, 2007 at 06:13 UTC 15387e32ff5116b82d3fe53df55b8c87eec83e01
1 file changed +4
t/t7005-editor.sh
+4
@@ -4,6 +4,8 @@ test_description='GIT_EDITOR, core.editor, and stuff'
4
5 . ./test-lib.sh
6
7 +OLD_TERM="$TERM"
8 +
9 for i in GIT_EDITOR core_editor EDITOR VISUAL vi
10 do
11 cat >e-$i.sh <<-EOF
@@ -88,4 +90,6 @@ do
90 '
91 done
92
93 +TERM="$OLD_TERM"
94 +
95 test_done