Commits on Source (18)
-
Petr Viktorin authored59f7f01f
-
Petr Viktorin authoredb2c2d4a9
-
Petr Viktorin authoredad6af8e0
-
Petr Viktorin authored3c1e8341
-
Niranjan M.R authored
Minor fixes based on review comments Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
34529cd9 -
Arthur Scott Poore authored1297d6ec
-
Aleksei Slaikovskii authored
_end_process() calls shutdown_write() method of SSHCallWrapper which closes the wrong stdin pipe if we're using Python 3 as wrap_file() closure returns a new object (io.TextIOWrapper).
39cf4faf -
Petr Viktorin authored
With OpenSSH, the stdin_text feature relied on the executed program to read as much input as it needed, end exit. This made it unusable with long-running programs like nc (netcat). Fix this by passing the input as escaped string and piping it through echo. Based heavily on a patch by Aleksei Slaikovskii: https://pagure.io/python-pytest-multihost/pull-request/9
c98b25ed -
Petr Viktorin authored
When writing files or issuing commands, bytestrings are passed through unchanged, and text strings (`unicode` in Python 2) are encoded using a configurable encoding (`utf-8` by default). When reading files, bytestrings are returned by default, but an encoding can be given to get a test string. For command output, separate `stdout_bytes` and `stdout_text` attributes are provided. The latter uses a configurable encoding (`utf-8` by default). Fixes: https://pagure.io/python-pytest-multihost/issue/7
ebb7c5a0 -
Petr Viktorin authored
Fixes: https://pagure.io/python-pytest-multihost/issue/6
1d52603f -
Petr Viktorin authored680d0ca4
-
Petr Viktorin authored6994d275
-
Petr Viktorin authored23e2758a
-
Petr Viktorin authored8ae081d6
-
Scott Poore authored
https://pagure.io/python-pytest-multihost/issue/12 * Modified run_command to add -n to echo * added test_piping_input * dropped newline from assert for: - test_escaping - test_escaping_binary - test_background_explicit_wait - test_background_context echo -e used by stdin_text processing is appending an extra newline character to stdin. For some commands this causes problems. $ echo -e test|base64 dGVzdAo= vs: $ echo -en test|base64 dGVzdA== and: $ echo -en test> test_file $ cat test_file|base64 dGVzdA== So if stdin is a string that doesn't already contain a newline, we shouldn't append it as extra to the end of what we pass to the command. Signed-off-by: Scott Poore <spoore@redhat.com>
862f24d5 -
Petr Viktorin authored0a32aa3e
-
Petr Viktorin authoreda70c8429
tox.ini
0 → 100644