]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: mock virNetDevSetIPAddress
authorLaine Stump <laine@laine.org>
Tue, 26 Apr 2016 16:49:48 +0000 (12:49 -0400)
committerLaine Stump <laine@laine.org>
Sun, 26 Jun 2016 23:33:08 +0000 (19:33 -0400)
commite1219b6f3c23a785b2a3fc2ce2f61d0e33aebe12
tree5b118ae43924e35d13a1b555b7b35b14731cc950
parentbfd2de6eeda30264e3847fa1c21856aa448f8439
tests: mock virNetDevSetIPAddress

Now that we can include <interface type='ethernet'> in tests, we could
almost test XML that has an <ip> element in an interface. Except that
the test fails when it tries to actually set the IP address for the
interface's tap device. This patch mocks virNetDevSetIPAddress() to
just return success.
tests/qemuxml2argvmock.c