Commits on Source 18
-
Petr Viktorin authored
-
Petr Viktorin authored
-
Petr Viktorin authored
-
Petr Viktorin authored
-
Niranjan M.R authored
Minor fixes based on review comments Signed-off-by:Niranjan M.R <mrniranjan@redhat.com>
-
Arthur Scott Poore authored
-
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).
-
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
-
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
-
Petr Viktorin authored
Fixes: https://pagure.io/python-pytest-multihost/issue/6
-
Petr Viktorin authored
-
Petr Viktorin authored
-
Petr Viktorin authored
-
Petr Viktorin authored
-
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>
-
Petr Viktorin authored
-
Petr Viktorin authored
tox.ini
0 → 100644