From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Willian Rampazzo <wrampazz@redhat.com>, Cleber Rosa <crosa@redhat.com>
Cc: "Laurent Vivier" <laurent@vivier.eu>,
"Alex Bennée" <alex.bennee@linaro.org>,
qemu-devel@nongnu.org, "Eduardo Habkost" <ehabkost@redhat.com>,
"Beraldo Leal" <bleal@redhat.com>
Subject: Re: [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing"
Date: Wed, 27 Nov 2019 16:06:04 +0100 [thread overview]
Message-ID: <f3477ffa-c73c-ebb9-cd33-69f614d9ffb3@redhat.com> (raw)
In-Reply-To: <CAKJDGDY21sjoQ9rvDWvRnwMobgg37ARM3Nj6Ajo6XQaLv4GFtA@mail.gmail.com>
On 11/27/19 3:53 PM, Willian Rampazzo wrote:
> On Tue, Nov 26, 2019 at 7:38 PM Philippe Mathieu-Daudé
> <philmd@redhat.com> wrote:
>>
>> Now than we use the stable snapshot archive, we can remove this check.
>>
>> This reverts commit d2499aca4bac613d837e2720e7bbe3378bc91245.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>> ---
>> tests/acceptance/boot_linux_console.py | 5 +----
>> 1 file changed, 1 insertion(+), 4 deletions(-)
>>
>> diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
>> index 752f776f68..ab4c8a5e5a 100644
>> --- a/tests/acceptance/boot_linux_console.py
>> +++ b/tests/acceptance/boot_linux_console.py
>> @@ -483,10 +483,7 @@ class BootLinuxConsole(Test):
>> '/20191021T083923Z/pool-m68k/main'
>> '/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
>> deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
>> - try:
>> - deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
>> - except OSError as exp:
>> - self.cancel(exp)
>> + deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
>> kernel_path = self.extract_from_deb(deb_path,
>> '/boot/vmlinux-5.3.0-1-m68k')
>>
>
> Tested-by: Willian Rampazzo <wrampazz@redhat.com>
Thanks for testing!
> Although I prefer to be on the safe side and keep the verification,
> the code works as expected.
If we want to catch that kind of errors, we should do it consistently in
all the tests.
I understand the recent 'avocado assets' command from release 73
properly fixes our problem, isn't it Cleber?
See https://avocado-framework.readthedocs.io/en/73.0/releases/73_0.html:
INSTRUMENTED tests using the avocado.core.test.Test.fetch_asset()
can take advantage of plugins that will attempt to download (and
cache) assets before the test execution. This should make the
overall test execution more reliable, and give better test
execution times as the download time will be excluded. Users can
also manually execute the avocado assets command to manually
fetch assets from tests.
I'm anxious about testing this new feature :)
Regards,
Phil.
prev parent reply other threads:[~2019-11-27 15:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-26 22:38 [PATCH-for-4.2? v2 0/2] tests/acceptance: Fix the m68k/q800 Linux test Philippe Mathieu-Daudé
2019-11-26 22:38 ` [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives Philippe Mathieu-Daudé
2019-11-27 14:51 ` Willian Rampazzo
2019-12-06 14:46 ` Cleber Rosa
2019-12-06 15:07 ` Philippe Mathieu-Daudé
2019-11-26 22:38 ` [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing" Philippe Mathieu-Daudé
2019-11-27 14:53 ` Willian Rampazzo
2019-11-27 15:06 ` Philippe Mathieu-Daudé [this message]
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=f3477ffa-c73c-ebb9-cd33-69f614d9ffb3@redhat.com \
--to=philmd@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=bleal@redhat.com \
--cc=crosa@redhat.com \
--cc=ehabkost@redhat.com \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=wrampazz@redhat.com \
/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).