commit | 5b2db4bb51548ce5f20b5f3fa5890c50514ec884 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Apr 02 20:47:44 2017 +0300 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Apr 02 20:49:16 2017 +0300 |
tree | da8e77ee93d29d7f78c2c7a10b8fea74bf31da3c | |
parent | 9b3f423c14af65f8f273d8ab3f3db68b191c3794 [diff] |
tests/run-tests: Be sure to close Pyboard object on completion. So underlying device was properly closed too.
diff --git a/tests/run-tests b/tests/run-tests index e8dc2ba..43db150 100755 --- a/tests/run-tests +++ b/tests/run-tests
@@ -456,7 +456,10 @@ # 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: + pyb.close() + if not res: sys.exit(1) if __name__ == "__main__":