diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-01 22:11:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-01 22:11:28 +0200 |
commit | b836f631dba2534efd314a8f77439cebc75acd4e (patch) | |
tree | 6cde26a11e30c9b3b87a348e875f0cc86b0126cf /src/testdir/test_channel.py | |
parent | 11a632d60bde616feb298d180108819ebb1d04a0 (diff) |
patch 8.2.3082: a channel command "echoerr" does not show anythingv8.2.3082
Problem: A channel command "echoerr" does not show anything.
Solution: Do not use silent errors when using an "echoerr" command.
(closes #8494)
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r-- | src/testdir/test_channel.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py index 8dba3ba4ca..9684bb933a 100644 --- a/src/testdir/test_channel.py +++ b/src/testdir/test_channel.py @@ -109,6 +109,11 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler): print("sending: {0}".format(cmd)) self.request.sendall(cmd.encode('utf-8')) response = "ok" + elif decoded[1] == 'echoerr': + cmd = '["ex","echoerr \\\"this is an error\\\""]' + print("sending: {0}".format(cmd)) + self.request.sendall(cmd.encode('utf-8')) + response = "ok" elif decoded[1] == 'bad command': cmd = '["ex","foo bar"]' print("sending: {0}".format(cmd)) |