[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/10] tests/avocado: mips: add hint for fetchasset plugin
From: |
Cleber Rosa |
Subject: |
Re: [PATCH 02/10] tests/avocado: mips: add hint for fetchasset plugin |
Date: |
Wed, 13 Dec 2023 14:39:05 -0500 |
Akihiko Odaki <akihiko.odaki@daynix.com> writes:
> On 2023/12/09 4:09, Cleber Rosa wrote:
>> Avocado's fetchasset plugin runs before the actual Avocado job (and
>> any test). It analyses the test's code looking for occurrences of
>> "self.fetch_asset()" in the either the actual test or setUp() method.
>> It's not able to fully analyze all code, though.
>>
>> The way these tests are written, make the fetchasset plugin blind to
>> the assets. This adds redundant code, true, but one that doesn't hurt
>> the test and aids the fetchasset plugin to download or verify the
>> existence of these assets in advance.
>>
>> Signed-off-by: Cleber Rosa <crosa@redhat.com>
>
> Why not delete fetch_asset() in do_test_mips_malta32el_nanomips()?
I was trying to preserve do_test_mips_malta32el_nanomips() in such a way
that with the eventual migration to the "dependency" system in newer
Avocado, the lines added here could simply be reversed.
But, that's not a strong enough reason to justify the duplication. I'll
follow your suggestion on v2.
Thanks!
- Cleber.
- [PATCH 05/10] tests/avocado: use more distinct names for assets, (continued)
- [PATCH 05/10] tests/avocado: use more distinct names for assets, Cleber Rosa, 2023/12/08
- [PATCH 06/10] tests/avocado/kvm_xen_guest.py: cope with asset RW requirements, Cleber Rosa, 2023/12/08
- [PATCH 10/10] tests/avocado/boot_xen.py: use class attribute, Cleber Rosa, 2023/12/08
- [PATCH 01/10] tests/avocado: mips: fallback to HTTP given certificate expiration, Cleber Rosa, 2023/12/08
- [PATCH 02/10] tests/avocado: mips: add hint for fetchasset plugin, Cleber Rosa, 2023/12/08
- [PATCH 09/10] tests/avocado/boot_xen.py: unify tags, Cleber Rosa, 2023/12/08