You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests/run-tests: Be sure to close Pyboard object on completion.
So underlying device was properly closed too.
This commit is contained in:
+4
-1
@@ -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:
|
||||
pyb.close()
|
||||
if not res:
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user