From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Cleber Rosa <crosa@redhat.com>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Sarah Harris" <S.E.Harris@kent.ac.uk>,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
"Thomas Huth" <thuth@redhat.com>,
"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
"KONRAD Frederic" <frederic.konrad@adacore.com>,
"Willian Rampazzo" <wrampazz@redhat.com>,
"Yoshinori Sato" <ysato@users.sourceforge.jp>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Aleksandar Markovic" <aleksandar.qemu.devel@gmail.com>,
"Hervé Poussineau" <hpoussin@reactos.org>,
"Antony Pavlov" <antonynpavlov@gmail.com>,
"Aleksandar Rikalo" <aleksandar.rikalo@syrmia.com>,
"Eduardo Habkost" <ehabkost@redhat.com>,
"Fabien Chouteau" <chouteau@adacore.com>,
qemu-arm@nongnu.org, "Michael Rolnik" <mrolnik@gmail.com>,
"Pavel Dovgalyuk" <pavel.dovgaluk@ispras.ru>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Beraldo Leal" <bleal@redhat.com>,
qemu-ppc@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Aurelien Jarno" <aurelien@aurel32.net>
Subject: Re: [PATCH 2/4] boot linux test: update arm bionic URL
Date: Mon, 7 Sep 2020 09:52:03 +0200 [thread overview]
Message-ID: <261b05da-0546-23fb-3e01-df0d17c0a825@redhat.com> (raw)
In-Reply-To: <20200907042000.415931-3-crosa@redhat.com>
Hi Cleber,
On 9/7/20 6:19 AM, Cleber Rosa wrote:
> Which uses an xz compressed file, which has builtin support for
> decompression on avocado.utils.archive.
This line doesn't make sense without the patch subject
prepended "Update arm bionic URL". To make commit
descriptions coherent, please copy the subject.
Not all email clients display email subject right
before the email content.
> So the check for P7ZIP can be
> dropped, and extraction logic simplified.
>
> Signed-off-by: Cleber Rosa <crosa@redhat.com>
> ---
> tests/acceptance/boot_linux_console.py | 20 ++++++--------------
> 1 file changed, 6 insertions(+), 14 deletions(-)
>
> diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
> index 751b47b8fd..c75c512c8b 100644
> --- a/tests/acceptance/boot_linux_console.py
> +++ b/tests/acceptance/boot_linux_console.py
> @@ -22,12 +22,6 @@ from avocado.utils import process
> from avocado.utils import archive
> from avocado.utils.path import find_command, CmdNotFoundError
>
> -P7ZIP_AVAILABLE = True
> -try:
> - find_command('7z')
> -except CmdNotFoundError:
> - P7ZIP_AVAILABLE = False
> -
> """
> Round up to next power of 2
> """
> @@ -687,7 +681,6 @@ class BootLinuxConsole(LinuxKernelTest):
> self.vm.wait()
>
> @skipUnless(os.getenv('AVOCADO_ALLOW_LARGE_STORAGE'), 'storage limited')
> - @skipUnless(P7ZIP_AVAILABLE, '7z not installed')
> def test_arm_orangepi_bionic(self):
> """
> :avocado: tags=arch:arm
> @@ -695,14 +688,13 @@ class BootLinuxConsole(LinuxKernelTest):
> :avocado: tags=device:sd
> """
>
> - # This test download a 196MB compressed image and expand it to 1GB
> + # This test download a 275MB compressed image and expand it to 1.1GB
> image_url = ('https://dl.armbian.com/orangepipc/archive/'
> - 'Armbian_19.11.3_Orangepipc_bionic_current_5.3.9.7z')
> - image_hash = '196a8ffb72b0123d92cea4a070894813d305c71e'
> - image_path_7z = self.fetch_asset(image_url, asset_hash=image_hash)
> - image_name = 'Armbian_19.11.3_Orangepipc_bionic_current_5.3.9.img'
> - image_path = os.path.join(self.workdir, image_name)
> - process.run("7z e -o%s %s" % (self.workdir, image_path_7z))
> + 'Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz')
> + image_hash = 'b4d6775f5673486329e45a0586bf06b6dbe792199fd182ac6b9c7bb6c7d3e6dd'
> + image_path_xz = self.fetch_asset(image_url, asset_hash=image_hash,
> + algorithm='sha256')
> + image_path = archive.extract(image_path_xz, self.workdir)
> image_pow2ceil_expand(image_path)
Nack, this is not the same test. You might be lucky it test the
same things, but this is not what the developer tested.
This is not how acceptance tests are supposed to work IMHO.
>
> self.vm.set_console()
>
next prev parent reply other threads:[~2020-09-07 7:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 4:19 [PATCH 0/4] Acceptance Tests: update assets location and cancel tests if missing Cleber Rosa
2020-09-07 4:19 ` [PATCH 1/4] Acceptance tests: use an available kernel image package for arm Cleber Rosa
2020-09-07 8:06 ` Philippe Mathieu-Daudé
2020-09-07 9:39 ` Daniel P. Berrangé
2020-09-07 9:59 ` Philippe Mathieu-Daudé
2020-09-07 10:28 ` Daniel P. Berrangé
2020-09-07 10:37 ` Philippe Mathieu-Daudé
2020-09-08 13:20 ` Alex Bennée
2020-09-08 13:47 ` Philippe Mathieu-Daudé
2020-09-07 4:19 ` [PATCH 2/4] boot linux test: update arm bionic URL Cleber Rosa
2020-09-07 7:52 ` Philippe Mathieu-Daudé [this message]
2020-09-08 18:19 ` Willian Rampazzo
2020-09-07 4:19 ` [PATCH 3/4] tests: bump avocado version Cleber Rosa
2020-09-08 19:55 ` Philippe Mathieu-Daudé
2020-09-07 4:20 ` [PATCH 4/4] Acceptance tests: cancel tests on missing assets Cleber Rosa
2020-09-08 18:12 ` Willian Rampazzo
2020-09-08 20:21 ` [PATCH 0/4] Acceptance Tests: update assets location and cancel tests if missing Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=261b05da-0546-23fb-3e01-df0d17c0a825@redhat.com \
--to=philmd@redhat.com \
--cc=S.E.Harris@kent.ac.uk \
--cc=aleksandar.qemu.devel@gmail.com \
--cc=aleksandar.rikalo@syrmia.com \
--cc=alex.bennee@linaro.org \
--cc=antonynpavlov@gmail.com \
--cc=aurelien@aurel32.net \
--cc=bleal@redhat.com \
--cc=chouteau@adacore.com \
--cc=crosa@redhat.com \
--cc=ehabkost@redhat.com \
--cc=frederic.konrad@adacore.com \
--cc=hpoussin@reactos.org \
--cc=jiaxun.yang@flygoat.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=mrolnik@gmail.com \
--cc=pavel.dovgaluk@ispras.ru \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
--cc=wainersm@redhat.com \
--cc=wrampazz@redhat.com \
--cc=ysato@users.sourceforge.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).