Hello Milosz,

as explained on IRC, the only available behavior (for the moment as I will send a patch soon), is to:
* send the command
* wait for any of the prompts or the defined patterns
* record the result (if asked by the test writer=a name is defined)

This is working like this because I was using it with the "bootloader" boot which does wait for the bootloader prompt before ending the action. So the interactive test was already at the prompt. This is what is usually done for most actions in LAVA.
I will add an options to wait before the action (or maybe just a specific command that will just wait for the prompt).
The most difficult task is (as usual) finding the right name for it :)

Thanks for testing and reporting issues!

Le jeu. 6 déc. 2018 à 13:22, Milosz Wasilewski <milosz.wasilewski@linaro.org> a écrit :
Hi,

I'm trying to experiment with 'interactive' test shell. The docs are here:
https://master.lavasoftware.org/static/docs/v2/actions-test.html#index-1

As I understand the feature should work in the following way (the docs
aren't very clear):
1. wait for one of the prompts
2. send command
3. match the result to regex (pass or fail)

However when I try it out, there is no wait for prompt. LAVA
immediately sends the command and adds value from prompts to list of
expressions to match. Is this correct? Example job:
https://staging.validation.linaro.org/scheduler/job/245886#L53
LAVA sends the command even before the board starts booting.

Any help is appreciated.

milosz

_______________________________________________
Lava-users mailing list
Lava-users@lists.lavasoftware.org
https://lists.lavasoftware.org/mailman/listinfo/lava-users


--
Rémi Duraffort
LAVA Team