tests: install "qemu" namespace package into venv
commit0e7647aa8a5d5b99a0ffb401ba75f0ae8c171c96
authorJohn Snow <jsnow@redhat.com>
Thu, 26 May 2022 00:09:18 +0000 (25 20:09 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2022 07:26:54 +0000 (6 09:26 +0200)
tree2e40d1c5572914150863fd5f2026c9b91a30606c
parent5a6f1199cb5fca105ca99356ae05f8e48f5c8d97
tests: install "qemu" namespace package into venv

This patch adds the "qemu" namespace package to the $build/tests/venv
directory. It does so in "editable" mode, which means that changes to
the source python directory will actively be reflected by the venv.

This patch also then removes any sys.path hacking from the avocado test
scripts directly. By doing this, the environment of where to find these
packages is managed entirely by the virtual environment and not by the
scripts themselves.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220526000921.1581503-7-jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/Makefile.include
tests/avocado/avocado_qemu/__init__.py
tests/avocado/virtio_check_params.py
tests/avocado/virtio_version.py
tests/requirements.txt