[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 0/8] Convert avocado tests to normal Python unittests
From: |
Daniel P . Berrangé |
Subject: |
Re: [RFC PATCH 0/8] Convert avocado tests to normal Python unittests |
Date: |
Tue, 16 Jul 2024 19:10:24 +0100 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Tue, Jul 16, 2024 at 08:03:54PM +0200, Paolo Bonzini wrote:
> Il mar 16 lug 2024, 18:45 John Snow <jsnow@redhat.com> ha scritto:
>
> > My only ask is that we keep the tests running in the custom venv
> > environment we set up at build time
> >
>
> Yes, they do, however pytest should also be added to pythondeps.toml if we
> go this way.
Done in this patch:
https://lists.nongnu.org/archive/html/qemu-devel/2024-07/msg03596.html
>
> > If we move to pytest, it's possible we can eliminate that funkiness, which
> > would be a win.
> >
>
> There is the pycotap dependency to produce TAP from pytest, but that's
> probably something small enough to be vendored. And also it depends on what
> the dependencies would be for the assets framework.
>
> > I'm also not so sure about recreating all of the framework that pulls vm
> > images on demand, that sounds like it'd be a lot of work, but maybe I'm
> > wrong about that.
> >
>
> Yep, that's the part that I am a bit more doubtful about.
Pulling & caching VM images isn't much more than a URL download to
a local file, not very complex in python. Assuming that's what you
are refering to, then it is already done in this patch:
https://lists.nongnu.org/archive/html/qemu-devel/2024-07/msg03598.html
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 :|
- [RFC PATCH 6/8] tests/pytest: Convert some tests that download files via fetch_asset(), (continued)
Re: [RFC PATCH 0/8] Convert avocado tests to normal Python unittests, John Snow, 2024/07/16
Re: [RFC PATCH 0/8] Convert avocado tests to normal Python unittests, Thomas Huth, 2024/07/17
Re: [RFC PATCH 0/8] Convert avocado tests to normal Python unittests, Paolo Bonzini, 2024/07/17
Re: [RFC PATCH 0/8] Convert avocado tests to normal Python unittests, Thomas Huth, 2024/07/17