-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description of defect
As discovered in #11594, our test frameworks still attempt to build for a target even when that target can't run the test frameworks. For example, on platforms that have a non-secure image (NSPE) and a secure image (SPE), SPE targets should be buildable even without serial, to save flash space within the secure image. All testing of the SPE can be done in the NSPE build, which does include serial.
Target(s) affected by this defect ?
Any targets that don't have serial, for instance. Specifically, NU_PFM_M2351_NPSA_S.
Toolchain(s) (name and version) displaying this defect ?
All toolchains
What version of Mbed-os are you using (tag or sha) ?
Mbed OS 5.14
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
Mbed OS 5.14
How is this defect reproduced ?
Attempt to build NU_PFM_M2351_NPSA_S, which by default (via targets.json) doesn't enable serial for code size reasons. The build should succeed, but it fails because the test frameworks depend on serial being present.