OSDN Git Service

tests/avocado: Do not run tests that require libslirp if it is not available
authorThomas Huth <thuth@redhat.com>
Wed, 24 Aug 2022 15:11:21 +0000 (17:11 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 29 Aug 2022 13:28:51 +0000 (15:28 +0200)
commit0fc389fe9208f0bfd9fa41cd7e6315a0989a3729
tree497c0c21127ac9bec022146f2a0144aae3f64114
parent0026be1d0f836ee899b47c6b925fdfc9baa9fd2f
tests/avocado: Do not run tests that require libslirp if it is not available

Some avocado tests blindly assume that QEMU has been compiled with libslirp
enabled and fail badly if it is missing. Add a proper check to cancel the
tests in this case.

Message-Id: <20220824151122.704946-6-thuth@redhat.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/avocado/avocado_qemu/__init__.py
tests/avocado/info_usernet.py
tests/avocado/replay_linux.py