]> git.proxmox.com Git - mirror_qemu.git/commit
tests/vm: allow running tests in an unconfigured source tree
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2022 16:36:34 +0000 (18:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2022 09:11:37 +0000 (11:11 +0200)
commit39735a914d577284edc9c6be8df7fb280530c021
treeafde860629b165b12fd49dd3367c8e57dd1ff74e
parentb9eae9efae4ba63af823f3c27d1bd421a4f4f092
tests/vm: allow running tests in an unconfigured source tree

tests/vm/Makefile.include used to assume that it could run in an unconfigured
source tree, and Cirrus CI relies on that.  It was however broken by commit
f4c66f1705 ("tests: use tests/venv to run basevm.py-based scripts", 2022-06-06),
which co-opted the virtual environment being used by avocado tests
to also run the basevm.py tests.

For now, reintroduce the usage of qemu.qmp from the source directory, but
without the sys.path() hacks.  The CI configuration can be changed to
install the package via pip when qemu.qmp is removed from the source tree.

Cc: John Snow <jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/vm/Makefile.include