]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: fix dry run handling in network firewall test
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 1 Nov 2018 11:42:56 +0000 (11:42 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Dec 2018 15:45:51 +0000 (15:45 +0000)
commit081bdb4d68405aa3c6aa940f27e2464b5f339d65
tree70b3f48b9941e0e3b6546966ec61b861112f2ec1
parent0367524b4f7003aec5e428aa9380fedf6f490c77
tests: fix dry run handling in network firewall test

The networkxml2firewalltest sets virCommand to dry run mode but doesn't
provide a callback to fill in stdout/stderr. As a result when the
firewall code queries rules it gets a NULL output and so never triggers
the callback to process output.

This trivial change just returns an empty string for the command output
in order to ensure the callback gets triggered. It has no effect right
now, but in future patches this will trigger greater test coverage.

Reviewed-by: Laine Stump <laine@laine.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/networkxml2firewalltest.c