[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 07/13] tests/avocado/kvm_xen_guest.py: cope with asset RW req
From: |
David Woodhouse |
Subject: |
Re: [PATCH 07/13] tests/avocado/kvm_xen_guest.py: cope with asset RW requirements |
Date: |
Mon, 29 Jul 2024 13:03:46 +0100 |
User-agent: |
Evolution 3.44.4-0ubuntu2 |
On Mon, 2024-07-29 at 11:58 +0100, Daniel P. Berrangé wrote:
> On Fri, Jul 26, 2024 at 09:44:32AM -0400, Cleber Rosa wrote:
> > Some of these tests actually require the root filesystem image,
> > obtained through Avocado's asset feature and kept in a common cache
> > location, to be writable.
Hm, I'm not sure *why* they require a writable image. Mostly they're
just testing the interrupt routing. What's the failure mode for a read-
only image?
> > @@ -56,11 +57,19 @@ def common_vm_setup(self):
> >
> > "367962983d0d32109998a70b45dcee4672d0b045")
> > self.rootfs = self.get_asset("rootfs.ext4",
> >
> > "f1478401ea4b3fa2ea196396be44315bab2bb5e4")
> > + if readwrite:
> > + dest = os.path.join(self.workdir,
> > os.path.basename(self.rootfs))
> > + shutil.copy(self.rootfs, dest)
> > + self.rootfs = dest
>
> This is a very expensive way of creating a writable disk. Better to
> avoid adding this 'readwrite' parameter at all, and instead create
> a throwaway qcow2 overlay for the image for all tests. That ensures
> writability for everything in a cheap manner.
Or just use -snapshot?
smime.p7s
Description: S/MIME cryptographic signature
- Re: [PATCH 11/13] tests/avocado/machine_aarch64_sbsaref.py: allow for rw usage of image, (continued)
- [PATCH 08/13] testa/avocado: test_arm_emcraft_sf2: handle RW requirements for asset, Cleber Rosa, 2024/07/26
- [PATCH 13/13] Avocado tests: allow for parallel execution of tests, Cleber Rosa, 2024/07/26
- [PATCH 12/13] Bump avocado to 103.0, Cleber Rosa, 2024/07/26
- [PATCH 07/13] tests/avocado/kvm_xen_guest.py: cope with asset RW requirements, Cleber Rosa, 2024/07/26
- [PATCH 10/13] tests/avocado/tuxrun_baselines.py: use Avocado's zstd support, Cleber Rosa, 2024/07/26
- Re: [PATCH 00/13] Bump Avocado to 103.0 LTS and update tests for compatibility and new features, Akihiko Odaki, 2024/07/28
- Re: [PATCH 00/13] Bump Avocado to 103.0 LTS and update tests for compatibility and new features, Philippe Mathieu-Daudé, 2024/07/29