about add dependency on device-testing


Hake Huang
 

Hi Maciej,

 

I try to implement the dependency on –device-test on –device-serial / --device-serial-pty / --hardware-map

 

https://github.com/hakehuang/zephyr/blob/e28c7bc8d96f96836ab05ae2f8640af98624dd2e/scripts/twister#L248

 

but I meet a problem, above code only works when you command line as below

 

./scripts/twister –device-serial /dev/ttyACM0 –device-test

 

But not work when you do below, which I believe is most of our default scripts does

 

./scripts/twister –device-test –device-serial /dev/ttyACM0

 

Do you have any idea on implement this? Thanks in advance.

 

Regards,

Hake