OSDN Git Service

tests: use tests/venv to run basevm.py-based scripts
authorJohn Snow <jsnow@redhat.com>
Thu, 26 May 2022 00:09:19 +0000 (20:09 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2022 07:26:54 +0000 (09:26 +0200)
commitf4c66f17051f0dee0e6070c6b78a78e7425b5c96
tree5512bfe2fecb69082fb06e022da60096ff94c056
parent0e7647aa8a5d5b99a0ffb401ba75f0ae8c171c96
tests: use tests/venv to run basevm.py-based scripts

This patch co-opts the virtual environment being used by avocado tests
to also run the basevm.py tests. This is being done in preparation for
for the qemu.qmp package being removed from qemu.git.

As part of the change, remove any sys.path() hacks and treat "qemu" as a
normal third-party import.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220526000921.1581503-8-jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/vm/Makefile.include
tests/vm/basevm.py