[elbe-devel] [PATCH 1/9] shellhelper: add one more doctest
Torben Hohn
torben.hohn at linutronix.de
Mon Dec 14 17:41:05 CET 2020
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()
--
2.20.1
More information about the elbe-devel
mailing list