Larry,
On Tue, 25 Aug 2020 at 04:10, Larry Shen larry.shen@nxp.com wrote:
Hi,
I saw something like “LAVA_HARD_RESET_COMMAND” was added to environment.
I think this is a side effect of adding all device dict variables into the test shell environment.
Yes, the test action could use this command to reboot the device now, it’s useful.
But, after the command sent, the code in container still need to handle something like next:
“Expect press any key to continue”
“Press any key”
“Expect login prompt”
“Login”
Etc……
But, this exactly the same code what lava have do in a lots of python files located in “lava_dispatcher/actions/boot”.
My question is: do you think it’s possible for user code in “docker-test-shell” action directly send any command or use any protocol to tell lava code(maybe a listener or something else) to help to do these things, then after done, the user code in docker test shell continue to execute its own stuff?
My simple answer is: there is no plan about it. If you think this could be a useful feature, please report a ticket in our gitlab so we can discuss the details there. The only place we allow for reboot during the test right now is when running Android CTS. This requires some additional script to look for fastboot devices and run 'fastboot boot'. It's done inside a test: https://github.com/Linaro/test-definitions/blob/master/automated/android/tra...
milosz
You know, this could reuse existed lava code as much as possible. I just want to know if you have plan for this? Thanks.
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users