Skip to content
Snippets Groups Projects
Commit 24b03561 authored by stijn's avatar stijn Committed by Paul Sokolovsky
Browse files

tests: Make sure test output has \r\n line-ends when running on Windows

This is the case already when using just subprocess.check_output, but in
the special cases (cmdline, meminfo, ...) the carriage return gets lost
during output processing so restore it in the end.
This fixes the micropython/meminfo.py test on Windows.
parent bd9f850e
Branches
No related tags found
No related merge requests found
......@@ -135,6 +135,8 @@ def run_micropython(pyb, args, test_file):
if i_mupy >= len(lines_mupy):
break
output_mupy = b''.join(lines_mupy)
if os.name == 'nt':
output_mupy = output_mupy.replace(b'\n', b'\r\n')
else:
# a standard test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment