tests/ps_schedstatistics: fix test on AVR + improve Python test script#12832
tests/ps_schedstatistics: fix test on AVR + improve Python test script#12832aabadie merged 2 commits intoRIOT-OS:masterfrom
Conversation
On slow platforms, such as AVR, the main thread could never run and the shell would remain stuck.
- Ensure the whole ps output is displayed in the terminal before exiting the script - Escape parenthesis in line regexp
|
After thinking about it again, I think that @fjmolinas is right that it is better to should increase the value of |
|
But on the other hand I see no reason to not just also decrease the load a bit to make the test more robust in case of small values of |
maribu
left a comment
There was a problem hiding this comment.
Works fine on Nucleo-F767ZI. The improvement of the test script makes sense and being more conservative about the load a board can handle is always a good idea.
Ran successfully on an ATmega1284P clocked at 8MHz when reducing the load a bit more. I'd say the remaining load reduction should be done by tweaking XTIMER_BACKOFF on AVR; ideally to increase with decreasing core clock.
|
@fjmolinas: Could you double-check my reasoning above? To me, the value in |
I have no issue with increasing the
Here is where is get tricky, I'm not sure how |
|
The issue with Murdock is unrelated, I'm retriggering a simple build. |
Next time please post the build result in the PR, specially if triggering a simple build. |
|
Only |
Contribution description
This PR is an attempt to fix the
tests/ps_schedstatisticson AVR by simply increasing the XTIMER_BACKOFF value.The PR also contains small cleanup in the Python test script:
Testing procedure
The following command should succeed, also on AVR (where it fails on master):
Issues/PRs references
Tick one item in #12651