tests: Capture stderr output as well.
This commit is contained in:
parent
5a59a10bf2
commit
b31d673207
@ -124,7 +124,7 @@ def run_micropython(pyb, args, test_file, is_special=False):
|
|||||||
|
|
||||||
# run the actual test
|
# run the actual test
|
||||||
e = {"MICROPYPATH": os.getcwd() + ":", "LANG": "en_US.UTF-8"}
|
e = {"MICROPYPATH": os.getcwd() + ":", "LANG": "en_US.UTF-8"}
|
||||||
p = subprocess.Popen(cmdlist, env=e, stdout=subprocess.PIPE)
|
p = subprocess.Popen(cmdlist, env=e, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
output_mupy = b''
|
output_mupy = b''
|
||||||
while p.poll() is None:
|
while p.poll() is None:
|
||||||
output_mupy += p.stdout.read()
|
output_mupy += p.stdout.read()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user