tests/run-tests: For REPL tests make sure the REPL is exited at the end.

This commit is contained in:
Damien George 2016-12-20 15:13:49 +11:00
parent 7bbce4e213
commit 1e7a801e2d
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ def run_micropython(pyb, args, test_file):
stderr=subprocess.STDOUT, bufsize=0)
banner = get(True)
output_mupy = banner + b''.join(send_get(line) for line in f)
send_get(b'\x04') # exit the REPL, so coverage info is saved
p.kill()
os.close(master)
os.close(slave)