-
- Downloads
Revert "tests: Use separate virtual environment for avocado"
This reverts commit e8e4298f. ensuregroup allows to specify both the acceptable versions of avocado, and a locked version to be used when avocado is not installed as a system pacakge. This lets us install avocado in pyvenv/ using "mkvenv.py" and reuse the distro package on Fedora and CentOS Stream (the only distros where it's available). ensuregroup's usage of "(>=..., <=...)" constraints when evaluating the distro package, and "==" constraints when installing it from PyPI, makes it possible to avoid conflicts between the known-good version and a package plugins included in the distro. This is because package plugins have "==" constraints on the version that is included in the distro, and, using "pip install avocado==88.1" on a venv that includes system packages will result in an error: avocado-framework-plugin-varianter-yaml-to-mux 98.0 requires avocado-framework==98.0, but you have avocado-framework 88.1 which is incompatible. avocado-framework-plugin-result-html 98.0 requires avocado-framework==98.0, but you have avocado-framework 88.1 which is incompatible. But at the same time, if the venv does not include a system distribution of avocado then we can install a known-good version and stick to LTS releases. Resolves: qemu-project/qemu#1663 Signed-off-by:Paolo Bonzini <pbonzini@redhat.com>
Showing
- .gitlab-ci.d/buildtest.yml 3 additions, 3 deletions.gitlab-ci.d/buildtest.yml
- docs/devel/acpi-bits.rst 3 additions, 3 deletionsdocs/devel/acpi-bits.rst
- docs/devel/testing.rst 7 additions, 7 deletionsdocs/devel/testing.rst
- pythondeps.toml 5 additions, 0 deletionspythondeps.toml
- scripts/ci/org.centos/stream/8/x86_64/test-avocado 2 additions, 2 deletionsscripts/ci/org.centos/stream/8/x86_64/test-avocado
- scripts/device-crash-test 1 addition, 1 deletionscripts/device-crash-test
- tests/Makefile.include 8 additions, 11 deletionstests/Makefile.include
- tests/requirements.txt 0 additions, 6 deletionstests/requirements.txt
- tests/vm/Makefile.include 1 addition, 1 deletiontests/vm/Makefile.include
Loading
Please register or sign in to comment