Hi,
-----Original Message----- From: Milosz Wasilewski milosz.wasilewski@linaro.org Sent: 25 June 2020 15:01 To: Stephen Lawrence stephen.lawrence@renesas.com Cc: lava-users@lists.lavasoftware.org; gandersson@genivi.org Subject: Re: [Lava-users] fastboot in docker support
[snip]
If you have more commands that do something on the board you just repeat the deploy/boot/test sequence several times. It might be handy to use some templating engine to prepare your lava jobs.
Yes I think this is the educational 'aha' for me. I had seen jobs with multiple test sections, but none I think (or just didn’t notice) that had repeats of the same types of deploy or boot sections (by type I just mean say 'deploy to fastboot'). So I was thinking that lava was just executing single deploy->boot blocks and thus everything had to overloaded into that single operation.
Now I can see how it can be done without engineering changes in lava itself. I agree templating it would make sense once its working.
I think with your example I could also sequence a job definition that called the script to flash the board from a test section. The only issue there is getting the images into the container in an automated way.
Hmm, I think this can be done with 'postprocessing' in deploy section but I didn't try. Antonio will know better. If it works you might not need the test section 3. Your second deploy step would do the oem format and reboot. I didn't try it but in theory it should work (famous last words).
We did wonder about trying it from the 'postprocess' of a 'deploy to downloads' and made an initial experiment. First blocker was getting the images for the script to process into the container and the other was the lava python not checking for a local docker image before trying to pull it. Oh and the question of u-boot control but you've answered that. I just mention this in the spirit of community information sharing. I think I will try the fastboot sequencing first Monday.
Right now I am really off. Blazing hot here and I am lucky enough to have a tree to sit under and a beer and book with my name on it!
Steve