n Tue, Aug 27, 2013 at 09:37:56AM +0300, Fathi Boudra wrote:
On 26 August 2013 21:32, Antonio Terceiro antonio.terceiro@linaro.org wrote:
On Mon, Aug 26, 2013 at 06:22:22PM +0100, Milosz Wasilewski wrote:
Hi,
Is it possible in LAVA to force reboot between installing test case dependencies and running the test itself? I'm trying to run bootchart test, but the bootchart package is not included in the ubuntu image I'm running.
That's not possible. You can workaround this by having two lava_test_shell actions, one that installs the dependency, and one that actually runs the tests. It sounds horrible (and it probably is), but will do the job because the target is rebooted before each lava_test_shell action.
IMO the right fix for the problem is having bootchart already installed in the image though.
it has been considered but I'm not convinced it's the right fix. It's the right workaround ;)
imo, the real problem: a test is considered finished when we reboot the image. bottom line, multiple phase tests (it could be a reboot or something) isn't supported by LAVA.
It is supported, just not with a single lava-test-shell action. lava-test-shell was designed to be black box (i.e. run from the target without intervention from the host), and you can't really reboot and pick it up after from any program running on the target.
bootchart is just a use-case. it needs to set up the OS, reboot to collect data, finally test results are available.
Maybe my solution with two test definitions is the right way to do it after all. Ideally we could also have a separate action to just install packages in the test image, but I think the overhead of using a separate lava-test-shell test definition is low enough.