On Tue, 23 Jul 2013 18:38:04 +0100
James Tunnicliffe <james.tunnicli...@linaro.org> wrote:

> I have a board here that doesn't boot to a prompt, it boots, but you
> don't get a prompt until you hit enter. At that point it is the most
> basic sh prompt (# ).

If you export PS1, do you get a usable prompt then? LAVA will overlay
that support in the test image to a predictable prompt, the same on all
boards.

Equally, there is support for sending a blank line over the serial link.

> I imagine LAVA uses a regexp to detect when a board has booted, but I
> can't find it in the source.

lava-dispatcher - target.py which can be overridden for particular
board types if you need something specific. (lava_dispatcher/device/)

> Is it waiting for the command prompt or
> can I apply some expect style scripting? Do I need a prompt in a
> specific form for testing? I have seen LAVA with the return code of
> the previous command in the prompt before, but don't know if I need to
> get images set up to do that or if I can script setting that up as
> part of a test or boot process.

lava_test_shell will provide that scripting. (MultiNode extends that
support to add more stuff).

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

Attachment: signature.asc
Description: PGP signature

_______________________________________________
linaro-validation mailing list
linaro-validation@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-validation

Reply via email to