ntoll / uflash

A module and command to easily flash Python onto the BBC's micro:bit device.
http://micropython.org/
MIT License
101 stars 27 forks source link

Non zero exit code in case of errors (issue #36) #37

Closed Nagasaki45 closed 6 years ago

Nagasaki45 commented 7 years ago

Apart from adding this feature there are a few changes to the tests. I couldn't just implement the feature without solving them first. I found silent failures in the tests as the result of the "catch all" block with the print in the main function. These issue were solved (not very elegantly, but with less mocking) in the first commit in this PR. Here are the problems I found:

I think that the rest of this PR is strightforward. Please ask if more elaboration needed.