Combined output line split gives unexpected output
Opened this issue · 0 comments
Deleted user commented
Consider the following output of a script that does simple math:
2 + 7 = 9
When pyjojo encounters this output, it tries to prepare the stdout
content by split
ting it. Here's scripts.py:127
:
callback((child.returncode, stdout.split()))
This means that what gets returned is this list:
"stdout": [
"2",
"+",
"7",
"=",
"9"
]
I expect:
"stdout" : [
"2 + 2 = 9"
]
By contrast, when the script runs in "split" mode, we use splitlines()
instead, like here on scripts.py:143
:
callback((child.returncode, stdout.splitlines(), stderr.splitlines()))
The former should use splitlines()
as well.