Skip to content

Conversation

bridadan
Copy link
Contributor

@bridadan bridadan commented Jul 25, 2016

STATUS: Ready - (Before merging, outside CLIs will need to be updated.)

NOTE: This is a breaking change for the test.py CLI. -m and -t will now be required arguments when --list is given. This is because the tests that are discovered are now dependent on the target and toolchain.

This should address #2104.

Previously, test discovery throught test.py used its own logic to find tests. This was mostly a subset of the rules used during the build process. It respected .mbedignore files, but it did not respect TARGET_, TOOLCHAIN_, and FEATURES_ directories. This change now uses the same logic used during building to respect these folders. Tests under these folders that are not being pulled in for the given target will be ignored.

Please review @screamerbg
FYI @theotherjimmy @sg-

bridadan added 2 commits July 25, 2016 14:43
Previously, test discovery throught test.py used its own logic to find
tests. This was mostly a subset of the rules used during the build
process. It respected .mbedignore files, but it did not respect TARGET_,
TOOLCHAIN_, and FEATURES_ directories. This change now uses the same logic
used during building to respect these folders. Tests under these folders
that are not being pulled in for the given target will be ignored.
Also renaming 'target' variable to 'mcu' to match make.py
@screamerbg
Copy link
Contributor

LGTM. Please make sure that documentation is updated as well. May be file it as separate PR

@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

Output

mbed Build Number: 527

Test failed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants