Skip to content

Commit

Permalink
Test suite: reset TERM to its previous value after testing.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Couder authored and Junio C Hamano committed Oct 27, 2007
1 parent dc27155 commit 15387e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/t7005-editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -88,4 +90,6 @@ do
'
done

TERM="$OLD_TERM"

test_done

0 comments on commit 15387e3

Please sign in to comment.