Skip to content

Commit 15387e3

Browse files
chriscoolgitster
authored andcommitted
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>
1 parent dc27155 commit 15387e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t7005-editor.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ test_description='GIT_EDITOR, core.editor, and stuff'
44

55
. ./test-lib.sh
66

7+
OLD_TERM="$TERM"
8+
79
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
810
do
911
cat >e-$i.sh <<-EOF
@@ -88,4 +90,6 @@ do
8890
'
8991
done
9092

93+
TERM="$OLD_TERM"
94+
9195
test_done

0 commit comments

Comments
 (0)