qemuxml2argvtest: do not mock virCommand

Mock virNetDevRunEthernetScript instead.

This restores the VIR_TEST_REGENERATE_OUTPUT functionality.
This commit is contained in:
Ján Tomko 2016-04-13 10:36:00 +02:00
parent d5a49e5d4c
commit cbbd74aad5
2 changed files with 3 additions and 5 deletions

View File

@ -1808,6 +1808,7 @@ virNetDevReplaceMacAddress;
virNetDevReplaceNetConfig; virNetDevReplaceNetConfig;
virNetDevRestoreMacAddress; virNetDevRestoreMacAddress;
virNetDevRestoreNetConfig; virNetDevRestoreNetConfig;
virNetDevRunEthernetScript;
virNetDevRxFilterFree; virNetDevRxFilterFree;
virNetDevRxFilterModeTypeFromString; virNetDevRxFilterModeTypeFromString;
virNetDevRxFilterModeTypeToString; virNetDevRxFilterModeTypeToString;

View File

@ -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;
} }