Open MarceloSalazar opened 6 years ago
how did you pass in the tickless macro?
First, I tried passing the -DMBED_TICKELESS
to "--other_args"
https://github.com/maclobdell/simple_mbed_test_runner/blob/master/run_all_tests.py#L21
It works to compile the tests
>mbed test --compile -t IAR -m K64F -DMBED_TICKELESS
But not to run the test:
C:\mbed\mbed-os-multi>mbed test --run -t IAR -m K64F -DMBED_TICKELESS
Usage: mbedgt [options]
mbedgt: error: no such option: -D
[mbed] ERROR: "mbedgt" returned error code 2.
[mbed] ERROR: Command "mbedgt --test-spec C:\mbed\mbed-os-multi\BUILD\tests\K64F\IAR\test_spec.json -DMBED_TICKELESS" in "C:\mbed\mbed-os-multi"
So, later I removed other_args
from here:
https://github.com/maclobdell/simple_mbed_test_runner/blob/master/run_all_tests.py#L118
This should help to fix it properly mbed-os/issues/7482
okay to close this ticket? It doesn't seem related to this script.
actually, I see what the real problem is. It would be good to have two sets of arguments. One for the compile command. One for the run command. I'll keep this open and implement that later.
Please have a look to issue/request I raised to solve this: mbed-os/issues/7482 I think for now you can have two arguments, one for compile and other run.
Using master version: https://github.com/maclobdell/simple_mbed_test_runner/blob/master/run_all_tests.py Modified build options to use -DMBED_TICKELESS
I see (1) a greentea error and (2) runner error: "local variable 'test_results' referenced before assignment"
@maclobdell