tests/qtest: Make the filter tests independent from a specific NIC
commit31fb263c2963489055789385aa8b91663756edee
authorThomas Huth <thuth@redhat.com>
Mon, 20 Dec 2021 10:30:25 +0000 (20 11:30 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 22 Dec 2021 07:13:05 +0000 (22 08:13 +0100)
tree42e1bef6717bb33cd54aa59073510394e4337726
parent046da5ef5747b8ae8efa02bd1d068abd5d639a12
tests/qtest: Make the filter tests independent from a specific NIC

These filter tests need a NIC, no matter which one, so they use a common
NIC by default. However, these common NIC models might not always have
been compiled into the QEMU target binary, so assuming that a certain NIC
is available is a bad idea. Since the exact type of NIC does not really
matter for these tests, let's switch to "-nic" instead of "-netdev" so
that QEMU can simply pick a default NIC for us.
This way we can now run the tests on other targets that have a default
machine with an on-board/default NIC, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211220103025.311759-1-thuth@redhat.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/meson.build
tests/qtest/test-filter-mirror.c
tests/qtest/test-filter-redirector.c
tests/qtest/test-netfilter.c