diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2024-08-30 15:38:08 +0200 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2024-09-04 10:52:29 +0200 |
| commit | 9903217a4ed013228d95d8b1876b6053b2bc5e95 (patch) | |
| tree | bd2e6e09328651ec597a94a310e090756f1d8cb6 /tests/functional/qemu_test/__init__.py | |
| parent | eeba3d736527191f3126fe0d4cc539f43cdba009 (diff) | |
| download | focaccia-qemu-9903217a4ed013228d95d8b1876b6053b2bc5e95.tar.gz focaccia-qemu-9903217a4ed013228d95d8b1876b6053b2bc5e95.zip | |
tests/functional: add a module for handling asset download & caching
The 'Asset' class is a simple module that declares a downloadable
asset that can be cached locally. Downloads are stored in the user's
home dir at ~/.cache/qemu/download, using a sha256 sum of the URL.
[thuth: Drop sha1 support, use hash on file content for naming instead of URL,
add the possibility to specify the cache dir via environment variable]
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240830133841.142644-15-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/functional/qemu_test/__init__.py')
| -rw-r--r-- | tests/functional/qemu_test/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/functional/qemu_test/__init__.py b/tests/functional/qemu_test/__init__.py index 2f1e0bc70d..db05c8f412 100644 --- a/tests/functional/qemu_test/__init__.py +++ b/tests/functional/qemu_test/__init__.py @@ -6,6 +6,7 @@ # later. See the COPYING file in the top-level directory. +from .asset import Asset from .config import BUILD_DIR from .cmd import has_cmd, has_cmds, run_cmd, is_readable_executable_file, \ interrupt_interactive_console_until_pattern, wait_for_console_pattern, \ |