Closed YifeiZuo01 closed 7 years ago
test/tests
. WIP.@jonikula could you try to test?
Running command
mbedtest --tc test_cmdline --tcdir examples --bin test/dut/dummyDut
results in the following error:
Traceback (most recent call last): File "/home/jodi/codebase/repos/nanomesh-applications/mbed-clitest/mbed_clitest/bench.py", line 763, in run result = self.__initialize() File "/home/jodi/codebase/repos/nanomesh-applications/mbed-clitest/mbed_clitest/bench.py", line 196, in __initialize env_cfg = self.__readEnvironmentConfigurations() File "/home/jodi/codebase/repos/nanomesh-applications/mbed-clitest/mbed_clitest/bench.py", line 249, in __readEnvironmentConfigurations if self.args.iface: AttributeError: 'Namespace' object has no attribute 'iface'
@jonikula Did you notice /mbed-clitest/mbed_clitest/bench.py
, it was interesting to be using clitest. I am not sure if we have some module which installed similar to python library which already exits, and when you install mbedtest, it won't be overwritten.
True, that's interesting. I wonder what happens there...
Running directly from mbedtest.py seems to work ok.
yep, mbedtest.py works and you need --type
. I need to check all the documentation.
ready to merge @YifeiZuo01 ? You mention about some problems, what was it?
yep, this is failed unittest in docker. The reason is access control failed. A file should have written access can be write.
Process runs okay in docker, HW isn't tested as that docker has problem to connect dut.
any update? @jonikula some files have Todos here and there, maybe they doesn't hurt.
I tried out some basic tests again with process and hardware. Seems to work.
Status
READY
Description
This branch refactored the clitest with new name "mbed test".
Tested cmd: --list --listsuite --suite --tcdir --tc --suitedir --type --version --repeat --color
Todos