From de14b21720627c0e09d559b1530a2dd5906c6dab Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Wed, 13 Jul 2022 13:18:27 -0400 Subject: [PATCH] CI: include the path of avocado-runner-avocado-vt on list This is a workaround for the fact that current Avocado will look for the runner script while doing resolution (creating Runnables) because it will populate the Runnable configuration with the "used configuration" for that kind of runner. If a change in Avocado will be needed is TBD, but this takes care of the broken resolution in the CI environment. Reference: https://github.com/avocado-framework/avocado-vt/issues/3457 Signed-off-by: Cleber Rosa --- .cirrus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 549ba304a7b..efc9e843002 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -35,10 +35,10 @@ fedora_35_task: - python3 -c "from virttest.asset import ConfigLoader; cl = ConfigLoader('virttest/test-providers.d/io-github-autotest-libvirt.ini'); cl.set('provider', 'ref', 'e6af7700f879fe1547bfb1421439121d35c919bd'); cl.save()" - python3 -m avocado vt-bootstrap --vt-type=$VT_TYPE --vt-skip-verify-download-assets --yes-to-all list_script: &list_scr - - python3 -m avocado list --vt-save-config=/tmp/config --vt-type=$VT_TYPE -- boot | tee /tmp/list + - PATH=~/.local/bin:$PATH python3 -m avocado list --vt-save-config=/tmp/config --vt-type=$VT_TYPE -- boot | tee /tmp/list - test $VT_TYPE == "qemu" || test $(wc -l < /tmp/list) -gt 50 - test $VT_TYPE == "libvirt" || test $(wc -l < /tmp/list) -eq 1 - - python3 -m avocado list --vt-config=/tmp/config --vt-type=$VT_TYPE -- boot | tee /tmp/list_from_config + - PATH=~/.local/bin:$PATH python3 -m avocado list --vt-config=/tmp/config --vt-type=$VT_TYPE -- boot | tee /tmp/list_from_config - diff /tmp/list /tmp/list_from_config - python3 -m avocado vt-list-guests --vt-type=$VT_TYPE - python3 -m avocado vt-list-archs --vt-type=$VT_TYPE