-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/cond_order: refactor the test to avoid knowing the thread IDs #14228
Conversation
Testing this PR could make use of #14227 |
@aabadie can you give your blessing. There are two/three more PRs waiting on this. And finally I like to get my board added when I'm satisfied with all relevant tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with success on native and on esp32-wroom-32.
All good to me. ACK
Thanks for cleaning up this Python script.
Please squash! |
I also confirm that the test is now working on arduino-mkr1000. |
When CDC ACM is used as stdio the first thread in the test may have a different ID than RIOT-OS#3. The test code will now look at the printed thread information (id, prio) as they are created. This avoids the need for a table with ID/prio.
9239215
to
765c216
Compare
To save you some time, I squashed and forced push the PR. Let's now wait for Murdock :) |
Contribution description
When CDC ACM is used as stdio the first thread in the test may have a
different ID than #3. The test code will now look at the printed thread
information (id, prio) as they are created. This avoids the need for a
table with ID/prio.
Testing procedure
Run
tests/cond_order
withcompile_and_test_for_board
. Choose a board which uses CDC ACM as stdio. That means there are three threads active when the test starts. The test should succeed.Run
tests/cond_order
withcompile_and_test_for_board
. Choose a board which uses standard UART for stdio (no CDC ACM). That means there are two threads active when the test starts. The test should succeed.Issues/PRs references
A similar problem was solved in #14181