[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 11/13] tests/avocado/machine_aarch64_sbsaref.py: allow for rw
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 11/13] tests/avocado/machine_aarch64_sbsaref.py: allow for rw usage of image |
Date: |
Mon, 29 Jul 2024 12:05:09 +0100 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Fri, Jul 26, 2024 at 09:44:36AM -0400, Cleber Rosa wrote:
> When the OpenBSD based tests are run in parallel, the previously
> single instance of the image would become corrupt. Let's give each
> test its own copy.
>
> Signed-off-by: Cleber Rosa <crosa@redhat.com>
> ---
> tests/avocado/machine_aarch64_sbsaref.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tests/avocado/machine_aarch64_sbsaref.py
> b/tests/avocado/machine_aarch64_sbsaref.py
> index 1275f24532..8816308b86 100644
> --- a/tests/avocado/machine_aarch64_sbsaref.py
> +++ b/tests/avocado/machine_aarch64_sbsaref.py
> @@ -7,6 +7,7 @@
> # SPDX-License-Identifier: GPL-2.0-or-later
>
> import os
> +import shutil
>
> from avocado import skipUnless
> from avocado.utils import archive
> @@ -187,7 +188,9 @@ def boot_openbsd73(self, cpu):
> )
>
> img_hash =
> "7fc2c75401d6f01fbfa25f4953f72ad7d7c18650056d30755c44b9c129b707e5"
> - img_path = self.fetch_asset(img_url, algorithm="sha256",
> asset_hash=img_hash)
> + cached_img_path = self.fetch_asset(img_url, algorithm="sha256",
> asset_hash=img_hash)
> + img_path = os.path.join(self.workdir,
> os.path.basename(cached_img_path))
> + shutil.copy(cached_img_path, img_path)
Again I think we should be using a throwaway qcow2 overlay rather
than copying the full image.
>
> self.vm.set_console()
> self.vm.add_args(
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH 04/13] tests/avocado: add cdrom permission related tests, (continued)
- [PATCH 04/13] tests/avocado: add cdrom permission related tests, Cleber Rosa, 2024/07/26
- [PATCH 05/13] tests/avocado: machine aarch64: standardize location and RO access, Cleber Rosa, 2024/07/26
- [PATCH 06/13] tests/avocado: use more distinct names for assets, Cleber Rosa, 2024/07/26
- [PATCH 09/13] tests/avocado/boot_xen.py: fetch kernel during test setUp(), Cleber Rosa, 2024/07/26
- [PATCH 11/13] tests/avocado/machine_aarch64_sbsaref.py: allow for rw usage of image, Cleber Rosa, 2024/07/26
- Re: [PATCH 11/13] tests/avocado/machine_aarch64_sbsaref.py: allow for rw usage of image,
Daniel P . Berrangé <=
- [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