diff options
author | Thomas Huth <thuth@redhat.com> | 2022-08-24 17:11:21 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2022-08-29 15:28:51 +0200 |
commit | 0fc389fe9208f0bfd9fa41cd7e6315a0989a3729 (patch) | |
tree | 497c0c21127ac9bec022146f2a0144aae3f64114 /tests/avocado/info_usernet.py | |
parent | 0026be1d0f836ee899b47c6b925fdfc9baa9fd2f (diff) | |
download | qemu-0fc389fe9208f0bfd9fa41cd7e6315a0989a3729.zip qemu-0fc389fe9208f0bfd9fa41cd7e6315a0989a3729.tar.gz qemu-0fc389fe9208f0bfd9fa41cd7e6315a0989a3729.tar.bz2 |
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>
Diffstat (limited to 'tests/avocado/info_usernet.py')
-rw-r--r-- | tests/avocado/info_usernet.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/avocado/info_usernet.py b/tests/avocado/info_usernet.py index dc01f74..b862a47 100644 --- a/tests/avocado/info_usernet.py +++ b/tests/avocado/info_usernet.py @@ -16,6 +16,7 @@ from qemu.utils import get_info_usernet_hostfwd_port class InfoUsernet(QemuSystemTest): def test_hostfwd(self): + self.require_netdev('user') self.vm.add_args('-netdev', 'user,id=vnet,hostfwd=:127.0.0.1:0-:22') self.vm.launch() res = self.vm.command('human-monitor-command', |