Skip to content

Commit f2b3e3c

Browse files
chriscoolgitster
authored andcommitted
test suite: remove useless TERM cruft in "t7005-editor.sh"
In commit 15387e3 (Test suite: reset TERM to its previous value after testing., 2007-10-26), I added a workaround to reset TERM to its previous value before the "test_done" at the end of "t7005-editor.sh" because otherwise "test_done" would have printed the test result with a bad TERM env variable (this resulted in output with no color on konsole). But since commit c2116a1 (test-lib: fix TERM to dumb for test repeatability, 2008-03-06), colored output is printed in a subshell with TERM reset to its original value so the earlier workaround is not needed anymore. Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d9e3b70 commit f2b3e3c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

t/t7005-editor.sh

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

55
. ./test-lib.sh
66

7-
OLD_TERM="$TERM"
8-
97
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
108
do
119
cat >e-$i.sh <<-EOF
@@ -116,6 +114,4 @@ test_expect_success 'core.editor with a space' '
116114
117115
'
118116

119-
TERM="$OLD_TERM"
120-
121117
test_done

0 commit comments

Comments
 (0)