DORMANTno replies

[PATCH] test suite: remove useless TERM cruft in "t7005-editor.sh"

From: Christian Couder <hidden>
Date: 2016-06-15 22:44:27
Subsystem: the rest · Maintainer: Linus Torvalds

In commit 15387e32ff5116b82d3fe53df55b8c87eec83e01 I added some cruft
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 c2116a1783a3d555d41892ae7db0dd0934d4ddf1 colored
output is printed in a subshell with TERM reset to its original value
so the cruft added in my patch above is now useless.

Signed-off-by: Christian Couder <redacted>
---
 t/t7005-editor.sh |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 6a74b3a..2d919d6 100755
--- a/t/t7005-editor.sh
+++ b/t/t7005-editor.sh
@@ -4,8 +4,6 @@ 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
@@ -116,6 +114,4 @@ test_expect_success 'core.editor with a space' '
 
 '
 
-TERM="$OLD_TERM"
-
 test_done
-- 
1.5.5.rc2.20.g03f57.dirty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help