Skip to content
Snippets Groups Projects
Commit 1b789bf8 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Merge branch 'master' into TMSS-666

parents 166ac9ae af11ee73
No related branches found
No related tags found
1 merge request!426Resolve TMSS-666
......@@ -102,15 +102,17 @@ def runCommand(cmdline, input=None):
cmdline,
stdin=subprocess.PIPE if input else None,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
stderr=subprocess.PIPE,
shell=True,
universal_newlines=True
)
# Feed input and wait for termination
logger.debug("runCommand input: %s", input)
stdout, _ = communicate_returning_strings(proc, input)
stdout, stderr = communicate_returning_strings(proc, input)
logger.debug("runCommand output: %s", stdout)
if stderr:
logger.warn("runCommand stderr output: %s", stderr)
# Check exit status, bail on error
if proc.returncode != 0:
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment