tests: Capture stderr output as well.

This commit is contained in:
Scott Shawcroft 2017-10-25 11:43:02 -07:00
parent 5a59a10bf2
commit b31d673207

View File

@ -124,7 +124,7 @@ def run_micropython(pyb, args, test_file, is_special=False):
# run the actual test
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''
while p.poll() is None:
output_mupy += p.stdout.read()