Mbed-os: Macros aren't passed to TESTS folder during "mbed test" command

Created on 3 Jan 2017  路  5Comments  路  Source: ARMmbed/mbed-os

Description

  • Type: Bug
  • Priority: Major

Bug

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)
.. )
}
bug

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bcostm picture bcostm  路  4Comments

davidantaki picture davidantaki  路  3Comments

neilt6 picture neilt6  路  4Comments

pilotak picture pilotak  路  3Comments

rbonghi picture rbonghi  路  3Comments