pyterm: try to reconnect on SerialException during connect #10482
pyterm: try to reconnect on SerialException during connect #10482aabadie merged 3 commits intoRIOT-OS:masterfrom
Conversation
|
Problem for me to try reconnecting, is that in the case or |
Since this case mostly happens when the device is unplugged, I'm not sure how valid that concern is. |
b5c1c5e to
43506cb
Compare
|
(rebased to current master to remove changes from #10481. |
|
I'm fine with the changes as they are now but I'd also like to have @cladmi's Python expertise here as well ;) |
|
I agree with the python implementation. I still have my remark for the issue when testing, but as said below, it may just mean, not use As In the case where after flashing, a device is in a "Device or resource busy" state, which happen to me from time to time on I found out that the nodes have there And when the test has 120s timeout or more… it means waiting for nothing. Having this added non deterministic behavior would push me to not use |
|
How is |
|
You have the same behavior already when you disconnect your board during testing ;-). |
If I disconnect my board when I am running automated testing on it, then I am stupid. It may have happen, but it was my fault to do it. I understand it may be useful when considering Just want to clarify it can clash with automated execution, as other things in |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
43506cb to
86c2a61
Compare
|
If used in conjunction with disabling it for tests with #12107 or equivalent yes. It would prevent introducing test failing with a wrong reason, but allow a different user behavior. |
|
Ok, then @aabadie can you give it another look. I promise to provide the proper flags for |
aabadie
left a comment
There was a problem hiding this comment.
I just tested this one and it doesn't work in the current state. See my comment below.
|
@aabadie your comments seem to have been addressed on this one. |
e51e7be to
dada82a
Compare
|
Squashed in preparation for a rebase to include config for #12107. |
This is what the user would do anyway.
dada82a to
09c05ff
Compare
|
Failing tests seem to be the same failing in the nightlies... |
|
Ping @aabadie? Your comments were addressed. |
|
I'm trying this PR but I can't reproduce the original error ( |
I get it alot, I'lk try to reproduce. |
|
Tested rebased on #12304 (the issue shows up a lot form there): |
aabadie
left a comment
There was a problem hiding this comment.
Changes are good. As reported by @fjmolinas, the new behavior is working well. I couldn't find any regression when testing locally either.
ACK and go
|
Thanks for the review and testing! |
Contribution description
This is what the user would do anyway.
Testing procedure
See testing procedures in #10481. The effect of this PR is that instead of exiting on a SerialException it tries to reconnect every 10 seconds
Issues/PRs references
Based on #10481.