tests: add interactive_sync adapted to shell #13613
Conversation
|
|
|
|
||
| Interacts through input to wait for node being ready. | ||
| """ | ||
| _test_utils_interactive_sync(child, retries, delay, '\n', '>') |
There was a problem hiding this comment.
Pyterm doesn't do anything on an empty line... so this doesn't work o pyterm.
There was a problem hiding this comment.
I was using term isntead of cleanterm which is used in tests
87349a0 to
f8c3426
Compare
|
Rebased, fixed failing tests. I added a |
|
@miri64 there are two failures but unrelated, could you give this a second look? |
|
Are you sure https://ci.riot-os.org/RIOT-OS/RIOT/13613/f8c342645f36d85f6e0a2192b27c112c1f3d940f/output/run_test/tests/netstats_l2/esp32-wroom-32:gnu.txt is unrelated? With https://ci.riot-os.org/RIOT-OS/RIOT/13613/f8c342645f36d85f6e0a2192b27c112c1f3d940f/output/run_test/examples/suit_update/nrf52dk:gnu.txt I agree, however This should be easily fixable on the worker @kaspar030 or am I mistaking? ;-) |
That test fails often on nightlies and on regular tests. So to be honest, everytime I see it fail I don't look into it in detail. But I have a |
Hmm seems its un-plugged or has some kind of issue, I can't do anything about it for now... @aabadie do you have an |
|
While we wait for confirmation, let's run this on Murdock one last time. Please squash |
f8c3426 to
80c2d0c
Compare
Confirmation came from murdock :) |
80c2d0c to
13febed
Compare
13febed to
e8be1f9
Compare
aabadie
left a comment
There was a problem hiding this comment.
All comments are addressed (even my nitpicks) and we had confirmation from Murdock that this PR is ok.
ACK and go!
With RIOT-OS#12941 and RIOT-OS#13613 some of the blacklisting introduced in RIOT-OS#12461 are no longer needed, since `test_interactive_test_util` is lighter or adds no extra code.
Contribution description
This PR changes the way Interactive Sync is done when the shell is present, instead of using new commands it prompts the shell with a
\nuntil>is received as an answerThis will reduce the size of a lot of test applications.
Testing procedure
Run all tests using shell on multiple boards (I'll run it on my setup as soon as the PR is open)
Green murdock
tests/periph_wdtandtests/struc_tm_utility/should still work:miniterm,socatandpyterm, can someone test forrtt?Issues/PRs references
Fixes compilation issues in #13152