[elbe-devel] [PATCH 1/9] shellhelper: add one more doctest
Bastian Germann
bage at linutronix.de
Tue Dec 15 11:27:18 CET 2020
Am 14.12.20 um 17:41 schrieb Torben Hohn:
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
> ---
> elbepack/shellhelper.py | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/elbepack/shellhelper.py b/elbepack/shellhelper.py
> index 83245886b..9252bc0fc 100644
> --- a/elbepack/shellhelper.py
> +++ b/elbepack/shellhelper.py
> @@ -308,6 +308,9 @@ def get_command_out(cmd, stdin=None, allow_fail=False, env_add=None):
>
> >>> get_command_out("cat -", stdin=b"ELBE", env_add={"TRUE":"true"})
> b'ELBE'
> +
> + >>> get_command_out("cat -", stdin="ELBE", env_add={"TRUE":"true"})
> + b'ELBE'
> """
>
> new_env = os.environ.copy()
>
Reviewed-by: Bastian Germann <bage at linutronix.de>
More information about the elbe-devel
mailing list