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
Hi Milosz,
I'm playing with this feature (I guess I was the initial requester). As far as I know, it is not yet supported in an official version.
If I'm wrong and if you do have a version supporting it, are you using u-boot? If yes, have you checked the value of bootdelay?
Regards,
Denis
-----Original Message----- From: Lava-users lava-users-bounces@lists.lavasoftware.org On Behalf Of Milosz Wasilewski Sent: jeudi 6 décembre 2018 13:22 To: lava-users@lists.lavasoftware.org Subject: [Lava-users] non-posix (interactive) shell testing
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
On Thu, 6 Dec 2018 at 12:45, Denis HUMEAU denis.humeau@st.com wrote:
Hi Milosz,
I'm playing with this feature (I guess I was the initial requester). As far as I know, it is not yet supported in an official version.
I'm testing on staging.v.l.o where it is available.
If I'm wrong and if you do have a version supporting it, are you using u-boot? If yes, have you checked the value of bootdelay?
no, testing on zephyr. I'll try on u-boot later today.
milosz
I'm playing with this feature (I guess I was the initial requester). As far as I know, it is not yet supported in an official version.
Every morning we install lava master on https://staging.validation.linaro.org So the feature is already available on this instance.
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):
- wait for one of the prompts
- send command
- 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
lava-users@lists.lavasoftware.org