Commit 5b2db4bb authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/run-tests: Be sure to close Pyboard object on completion.

So underlying device was properly closed too.
parent 9b3f423c
......@@ -456,7 +456,10 @@ def main():
# clear search path to make sure tests use only builtin modules
os.environ['MICROPYPATH'] = ''
if not run_tests(pyb, tests, args):
res = run_tests(pyb, tests, args)
if pyb:
if not res:
if __name__ == "__main__":
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment