Hi,
I am trying to write a test to conditionally extract files from a zip file for use in some scripts, e.g. unzip the file, copy/move the files I need out, remove the zip file and directory created from unzipping it. However, the zip file size exceeds the disk space of the DUT.
I have considered doing something like a MultiNode job, where the DUT is booted as well as a QEMU instance, and the file is downloaded and extracted on the QEMU and moved onto the DUT, but I would prefer not to do that if possible.
Is there any way to download the zip file mid-test to the worker instead, extract the files I need, and move them onto the DUT? Ideally no modifications to the code of LAVA, but if that is necessary then I can figure out an interim solution and come back to it later.
Regards, Michael
Hi,
On Tue, 25 Mar 2025 at 23:12, Michael Peddie michael.peddie@gallagher.com wrote:
Hi,
I am trying to write a test to conditionally extract files from a zip file for use in some scripts, e.g. unzip the file, copy/move the files I need out, remove the zip file and directory created from unzipping it. However, the zip file size exceeds the disk space of the DUT.
I have considered doing something like a MultiNode job, where the DUT is booted as well as a QEMU instance, and the file is downloaded and extracted on the QEMU and moved onto the DUT, but I would prefer not to do that if possible.
Is there any way to download the zip file mid-test to the worker instead, extract the files I need, and move them onto the DUT? Ideally no modifications to the code of LAVA, but if that is necessary then I can figure out an interim solution and come back to it later.
For your use-case, you can eventually use postprocess the file in a docker container (assuming your worker has enough space): https://lava.readthedocs.io/en/latest/user/advanced-tutorials/running-arbitr...
then use downloads:// pseudo-URL to access the files from the DUT.
Here's a sample job: https://gitlab.com/lava/lava/-/blob/master/tests/lava_dispatcher/sample_jobs...
Nonetheless, I'll avoid the multinode approach in favor of using a container to manipulate files for a size constrained DUT.
Regards, Michael _______________________________________________ lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
lava-users@lists.lavasoftware.org