]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: use virfirewallmock instead of hasNetfilterTools
authorPavel Hrdina <phrdina@redhat.com>
Wed, 14 Apr 2021 21:57:50 +0000 (23:57 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 21 Apr 2021 12:19:26 +0000 (14:19 +0200)
commit50a021df336a0f629da5a5e0b1d38decbf5c5fcd
tree962003b574d52c540638b681c5f5c97070ddce45
parente938ea50624fe88d99fc9991cd81ffa457a06da7
tests: use virfirewallmock instead of hasNetfilterTools

Instead of checking for specific error that the binaries are not
available mock the virFindFileInPath function. This way we don't have
to skip these tests on host where the binaries are missing.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/networkxml2firewalltest.c
tests/nwfilterebiptablestest.c
tests/nwfilterxml2firewalltest.c
tests/virfirewalltest.c