mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemuxml2argvtest: do not mock virCommand
Mock virNetDevRunEthernetScript instead. This restores the VIR_TEST_REGENERATE_OUTPUT functionality.
This commit is contained in:
parent
d5a49e5d4c
commit
cbbd74aad5
@ -1808,6 +1808,7 @@ virNetDevReplaceMacAddress;
|
||||
virNetDevReplaceNetConfig;
|
||||
virNetDevRestoreMacAddress;
|
||||
virNetDevRestoreNetConfig;
|
||||
virNetDevRunEthernetScript;
|
||||
virNetDevRxFilterFree;
|
||||
virNetDevRxFilterModeTypeFromString;
|
||||
virNetDevRxFilterModeTypeToString;
|
||||
|
@ -132,12 +132,9 @@ virNetDevSetOnline(const char *ifname ATTRIBUTE_UNUSED,
|
||||
}
|
||||
|
||||
int
|
||||
virCommandRun(virCommandPtr cmd ATTRIBUTE_UNUSED,
|
||||
int *exitstatus)
|
||||
virNetDevRunEthernetScript(const char *ifname ATTRIBUTE_UNUSED,
|
||||
const char *script ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (exitstatus)
|
||||
*exitstatus = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user