File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,14 @@ def ssh_channel(ssh_client_session):
32
32
'Ref: https://github.com/ansible/pylibssh/issues/57' , # noqa: WPS326
33
33
strict = False ,
34
34
)
35
- @pytest .mark .forked () # noqa: PT023 -- it's unclear if braces are needed here
35
+ @pytest .mark .forked
36
36
def test_exec_command (ssh_channel ):
37
37
"""Test getting the output of a remotely executed command."""
38
38
u_cmd_out = ssh_channel .exec_command ('echo -n Hello World' ).stdout .decode ()
39
39
assert u_cmd_out == u'Hello World' # noqa: WPS302
40
+ # Test that repeated calls to exec_command do not segfault.
41
+ u_cmd_out = ssh_channel .exec_command ('echo -n Hello Again' ).stdout .decode ()
42
+ assert u_cmd_out == u'Hello Again' # noqa: WPS302
40
43
41
44
42
45
def test_double_close (ssh_channel ):
You can’t perform that action at this time.
0 commit comments