[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 23/31] tests/functional: convert tests to new archive_extr
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v2 23/31] tests/functional: convert tests to new archive_extract helper |
Date: |
Thu, 12 Dec 2024 10:44:28 +0000 |
User-agent: |
Mutt/2.2.13 (2024-03-09) |
On Thu, Dec 12, 2024 at 11:34:19AM +0100, Thomas Huth wrote:
> On 11/12/2024 18.26, Daniel P. Berrangé wrote:
> > Replace use of utils.archive_extract and extract_from_deb with the
> > new archive_extract helper.
> >
> > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> > ---
> ...
> > diff --git a/tests/functional/qemu_test/linuxkernel.py
> > b/tests/functional/qemu_test/linuxkernel.py
> > index 8f2810f3af..155855541f 100644
> > --- a/tests/functional/qemu_test/linuxkernel.py
> > +++ b/tests/functional/qemu_test/linuxkernel.py
> > @@ -3,11 +3,9 @@
> > # This work is licensed under the terms of the GNU GPL, version 2 or
> > # later. See the COPYING file in the top-level directory.
> > -import os
> > -
> > from .testcase import QemuSystemTest
> > from .cmd import wait_for_console_pattern
> > -from .archive import deb_extract
> > +
> > class LinuxKernelTest(QemuSystemTest):
>
> Cosmetical nit: Two empty lines should be enough, no reason to add a third
> one.
Yes, I was aiming to fixup to two lines where I touched code, since that
is what python linters would want us to have.
>
> Apart from that:
> Reviewed-by: Thomas Huth <thuth@redhat.com>
>
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 v2 22/31] tests/functional: add 'archive_extract' to QemuBaseTest, (continued)
- [PATCH v2 22/31] tests/functional: add 'archive_extract' to QemuBaseTest, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 21/31] tests/functional: add a generalized archive_extract, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 24/31] tests/functional: add a generalized uncompress helper, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 25/31] tests/functional: add 'uncompress' to QemuBaseTest, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 23/31] tests/functional: convert tests to new archive_extract helper, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 26/31] tests/functional: convert tests to new uncompress helper, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 28/31] tests/functional: replace 'run_cmd' with subprocess helpers, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 27/31] tests/functional: drop back compat imports from utils.py, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 29/31] tests/functional: remove now unused 'run_cmd' helper, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 30/31] tests/functional: skip tests if assets are not available, Daniel P . Berrangé, 2024/12/11