mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
dc2715554e
commit
15387e32ff
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue