diff mbox series

[22/22,NOTFORMERGE] Bump Avocado version to latest master

Message ID 20210203172357.1422425-23-crosa@redhat.com (mailing list archive)
State New, archived
Headers show
Series Acceptance Test: introduce base class for Linux based tests | expand

Commit Message

Cleber Rosa Feb. 3, 2021, 5:23 p.m. UTC
This is intende to be replaced by a bump to Avocado 85.0, to be
released by Feb 8 2021.

Latest master contains an improvement to "avocado.utils.vmimage" that
let's it download older Fedora images from the archive locations.
That allows the currently set Fedora 31 images to continue being used.

Reference: https://github.com/avocado-framework/avocado/milestone/11
Reference: https://github.com/avocado-framework/avocado/commit/e4d67e96ee9563436dcf7dd83902723576657d29
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
 tests/requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marc-André Lureau Feb. 11, 2021, 10:45 a.m. UTC | #1
Hi

On Wed, Feb 3, 2021 at 9:41 PM Cleber Rosa <crosa@redhat.com> wrote:
>
> This is intende to be replaced by a bump to Avocado 85.0, to be
> released by Feb 8 2021.
>
> Latest master contains an improvement to "avocado.utils.vmimage" that
> let's it download older Fedora images from the archive locations.
> That allows the currently set Fedora 31 images to continue being used.
>
> Reference: https://github.com/avocado-framework/avocado/milestone/11
> Reference: https://github.com/avocado-framework/avocado/commit/e4d67e96ee9563436dcf7dd83902723576657d29
> Signed-off-by: Cleber Rosa <crosa@redhat.com>

Although it's not a panacea to use its API, you may consider using
osinfo in the future. I gave it a 5min try to have:

import gi
gi.require_version('Libosinfo', '1.0')
from gi.repository import Libosinfo

l = Libosinfo.Loader.new()
l.process_system_path()
db = l.get_db()
os = db.get_os_list().get_elements()
for o in os:
    for l in o.get_image_list().get_elements():
        print(l.get_url())

> ---
>  tests/requirements.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/requirements.txt b/tests/requirements.txt
> index 62e8ffd28c..8ddf0d8c86 100644
> --- a/tests/requirements.txt
> +++ b/tests/requirements.txt
> @@ -1,5 +1,5 @@
>  # Add Python module requirements, one per line, to be installed
>  # in the tests/venv Python virtual environment. For more info,
>  # refer to: https://pip.pypa.io/en/stable/user_guide/#id1
> -avocado-framework==83.0
> +git+https://github.com/avocado-framework/avocado@9b372adeec6dceaba276ca4729f2e5a2fcccaa4c#egg=avocado_framework
>  pycdlib==1.11.0
> --
> 2.25.4
>
>
diff mbox series

Patch

diff --git a/tests/requirements.txt b/tests/requirements.txt
index 62e8ffd28c..8ddf0d8c86 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -1,5 +1,5 @@ 
 # Add Python module requirements, one per line, to be installed
 # in the tests/venv Python virtual environment. For more info,
 # refer to: https://pip.pypa.io/en/stable/user_guide/#id1
-avocado-framework==83.0
+git+https://github.com/avocado-framework/avocado@9b372adeec6dceaba276ca4729f2e5a2fcccaa4c#egg=avocado_framework
 pycdlib==1.11.0