From d5741fa0e0b42f0f58bbe02780a6a50b16ba887a Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Thu, 14 Jul 2022 14:47:43 -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 549ba304a7..efc9e84300 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