On Mon, Jul 8, 2024 at 2:09 PM sweta.ghosh@nagarro.com wrote:
Hello,
I would like to change path to /mnt from below: "lava_test_dir": "/lava-%s", "lava_test_results_dir": "/lava-%s",
These can be changes in the job context: context: lava_test_results_dir: "/mnt/lava-%s"
context is a top level element in the lava job yaml.
I am using an immutable image and due to which don't have permission to write, so cannot create directory eg /lava-34 due to which cannot execute test. We have partition /mnt which we can mount and run the test cases over our os. But for that to work I need to change path. I tried changing it in /usr/lib/python3/dist-packages/lava_dispatcher/deployment_data.py , but jobs fails once I change it. I have only changed the debian section as the image we are using is a debian image.
Could you please help me if there is any option to make these changes while executing job or any other file for devices.
One more thing you have to manage is delivering lava overlay to the board. After changing the context, lava will expect the test-shell scripts to be present in the proper path. In your case it will be /mnt/lava-%s/bin/. I don't know how you add overlay to the image, but please bear in mind that when creating overlay, the path from lava_test_results_dir is ignored. I think it's a bug, but fixing it seems pretty hard (a lot of potential problems to solve).
Best Regards, Milosz