-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Baudrate in test spec #3257
Baudrate in test spec #3257
Conversation
Before, the get_config function was checking the equality of a set and a list. However the list's equality depends on order, so this change casts it to set to prevent an infinite loop.
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
|
The way in which you're accessing the config data should be fine. You are creating an extra toolchain, target, and config object which you are throwing away before you do any compiling, but that should be fine. |
Lots of CI issues today, sorry again. Had to restart the system. Restarting now. /morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 1066 All builds and test passed! |
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.
LGTM
Description
This PR sets the baudrate in the test spec file (used by Greentea for automated testing) based on the mbed config setting for the stdio default baud rate: https://github.com/ARMmbed/mbed-os/blob/master/platform/mbed_lib.json#L9
There was another patch that was necessary to prevent an issue when getting the config data. Before, the
get_config
function inbuild_api.py
was checking the equality of a set and a list. However the list's equality depends on order, so now it is casted it to a set to prevent an infinite loop.Status
READY
Migrations
If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.
NO
Todos
FYI @stevew817