mirror of https://gitee.com/openkylin/libvirt.git
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;
|
virNetDevReplaceNetConfig;
|
||||||
virNetDevRestoreMacAddress;
|
virNetDevRestoreMacAddress;
|
||||||
virNetDevRestoreNetConfig;
|
virNetDevRestoreNetConfig;
|
||||||
|
virNetDevRunEthernetScript;
|
||||||
virNetDevRxFilterFree;
|
virNetDevRxFilterFree;
|
||||||
virNetDevRxFilterModeTypeFromString;
|
virNetDevRxFilterModeTypeFromString;
|
||||||
virNetDevRxFilterModeTypeToString;
|
virNetDevRxFilterModeTypeToString;
|
||||||
|
|
|
@ -132,12 +132,9 @@ virNetDevSetOnline(const char *ifname ATTRIBUTE_UNUSED,
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
virCommandRun(virCommandPtr cmd ATTRIBUTE_UNUSED,
|
virNetDevRunEthernetScript(const char *ifname ATTRIBUTE_UNUSED,
|
||||||
int *exitstatus)
|
const char *script ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (exitstatus)
|
|
||||||
*exitstatus = 0;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue