Skip to content
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

Merged
merged 2 commits into from
Nov 15, 2016
Merged

Baudrate in test spec #3257

merged 2 commits into from
Nov 15, 2016

Conversation

bridadan
Copy link
Contributor

@bridadan bridadan commented Nov 10, 2016

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 in build_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

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.
@bridadan
Copy link
Contributor Author

/morph test

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

@theotherjimmy
Copy link
Contributor

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.

@theotherjimmy
Copy link
Contributor

theotherjimmy commented Nov 10, 2016

Not in this way: this is fine

@bridadan
Copy link
Contributor Author

Lots of CI issues today, sorry again. Had to restart the system. Restarting now.

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1066

All builds and test passed!

Copy link

@mazimkhan mazimkhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sg- sg- merged commit 68badb2 into ARMmbed:master Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants