Target
K64F
Toolchain:
GCC_ARM|ARM
mbed-cli version:
1.0.0
Expected behavior
macros that are passed to the "mbed test" command should be passed to TESTS files too.
Actual behavior
macros that are passed to the "mbed test" command aren't passed to TESTS files.
From looking into the code of test_api.py script, it seems that the macros that are passed by the user during "mbed test" command execution are overwritten by another function.
From test_api.py:
def build_tests(... ,macros=None, ...) {
...
cfg, macros, features = get_config(base_source_paths, target_name, toolchain_name)
.. )
}
cc @theotherjimmy @bridadan
Thanks for raising this issue @jenia81. The line you mentioned was indeed the problem, I've submitted PR #3518 to fix this. Would you mind verifying that my changes fix the issue?
@bridadan No problem, I'll check and let you know
@jenia81 Did you have a chance to check it out?
@bridadan I've checked and it's working