Commit 938d7f2
committed
unix: Enable exit code handling for sys.exit().
Enable MICROPY_PYEXEC_ENABLE_EXIT_CODE_HANDLING to propagate sys.exit()
exit codes properly. Update convert_pyexec_result() to handle the new
return value semantics where pyexec returns 0 for success, 1 for
exception, or the actual exit code for SystemExit.
Signed-off-by: Andrew Leech <[email protected]>1 parent 66c748c commit 938d7f2
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
239 | 245 | | |
240 | 246 | | |
241 | 247 | | |
| |||
245 | 251 | | |
246 | 252 | | |
247 | 253 | | |
| 254 | + | |
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| |||
0 commit comments