qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 05/10] tests/avocado: use more distinct names for assets


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 05/10] tests/avocado: use more distinct names for assets
Date: Mon, 11 Dec 2023 17:30:04 +0100
User-agent: Mozilla Thunderbird

On 8/12/23 20:09, Cleber Rosa wrote:
Avocado's asset system will deposit files in a cache organized either
by their original location (the URI) or by their names.  Because the
cache (and the "by_name" sub directory) is common across tests, it's a
good idea to make these names as distinct as possible.

This avoid name clashes, which makes future Avocado runs to attempt to
redownload the assets with the same name, but from the different
locations they actually are from.  This causes cache misses, extra
downloads, and possibly canceled tests.

Could it be clever to use the content hash for asset location?

Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
  tests/avocado/kvm_xen_guest.py  | 3 ++-
  tests/avocado/netdev-ethtool.py | 3 ++-
  2 files changed, 4 insertions(+), 2 deletions(-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]