{"thread":{"id":"10469","subject":"[PATCH] Test suite: reset TERM to its previous value after testing.","startedAt":"2007-10-26T04:13:50Z","lastAt":"2007-10-26T04:13:50Z","messageCount":1,"participants":["Christian Couder"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"57255","messageId":"20071026061350.bd090e26.chriscool@tuxfamily.org","threadId":"10469","inReplyTo":null,"subject":"[PATCH] Test suite: reset TERM to its previous value after testing.","fromName":"Christian Couder","fromEmail":"chriscool@tuxfamily.org","sentAt":"2007-10-26T04:13:50Z","receivedAt":"2007-10-26T04:13:50Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Using konsole, I get no colored output at the end of \"t7005-editor.sh\"\nwithout this patch.\n\nSigned-off-by: Christian Couder <chriscool@tuxfamily.org>\n---\n t/t7005-editor.sh |    4 ++++\n 1 files changed, 4 insertions(+), 0 deletions(-)\n\nThis patch should be applied on top of Pierre Habouzit's\n\"Add some fancy colors in the test library when terminal supports it.\"\npatch.\n\ndiff --git a/t/t7005-editor.sh b/t/t7005-editor.sh\nindex 28643b0..01cc0c0 100755\n--- a/t/t7005-editor.sh\n+++ b/t/t7005-editor.sh\n@@ -4,6 +4,8 @@ test_description='GIT_EDITOR, core.editor, and stuff'\n \n . ./test-lib.sh\n \n+OLD_TERM=\"$TERM\"\n+\n for i in GIT_EDITOR core_editor EDITOR VISUAL vi\n do\n \tcat >e-$i.sh <<-EOF\n@@ -88,4 +90,6 @@ do\n \t'\n done\n \n+TERM=\"$OLD_TERM\"\n+\n test_done\n-- \n1.5.3.4.1494.g253d\n"}]}