On Tue, 12 Feb 2019 at 15:56, Pete Dyer Pete.Dyer@arm.com wrote:
The test job runs in an LXC container.
I have a yaml file that contains some steps:
apt-get install <some packages>
pip install <python-command-line-interface-tool>
python-command-line-inerface-tool
The python-command-line-inerface-tool has a prompt ("Select a device from the list:") for the user to select an option (in my case the option is "1"). There will be a different prompt in the error case ("No devices found!").
Is there a way of wrapping this last step in some way?
The prompt can be specified in the interactive test action and the error message as a fail condition.
Also, consider patching the tool so that it accepts a command line option at start up to avoid needing to interact with it in the first place.
Pete
From: Neil Williams neil.williams@linaro.org Sent: 12 February 2019 15:46 To: Pete Dyer Cc: lava-users@lists.lavasoftware.org Subject: Re: [Lava-users] Interactive Test steps with user input
On Tue, 12 Feb 2019 at 15:44, Pete Dyer Pete.Dyer@arm.com wrote:
Hi,
I have a test step that requires user input to a defined prompt.
Is there a way I can automate this in LAVA ?
I think we'll need a lot more specific information for this, examples etc. Interactive is probably what you need.
I can see how we do this for Boot Actions and I've looked at interactive jobs that communicate to U-boot but these don't seem to fit my use case.
Thanks.
Pete
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/ IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users