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

pull/2699/merge
Damien George 2016-12-20 15:13:49 +11:00
rodzic 7bbce4e213
commit 1e7a801e2d
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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)