mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
networkxml2firewalltest: Strip path from test output via virCommandSetDryRun
Enable the internal path clearing instead of using virTestClearCommandPath. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
01c357a4c9
commit
76af07c278
@ -98,7 +98,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
|
|||||||
char *actual;
|
char *actual;
|
||||||
g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew();
|
g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew();
|
||||||
|
|
||||||
virCommandSetDryRun(dryRunToken, &buf, false, false, testCommandDryRun, NULL);
|
virCommandSetDryRun(dryRunToken, &buf, false, true, testCommandDryRun, NULL);
|
||||||
|
|
||||||
if (!(def = virNetworkDefParseFile(xml, NULL)))
|
if (!(def = virNetworkDefParseFile(xml, NULL)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -107,7 +107,6 @@ static int testCompareXMLToArgvFiles(const char *xml,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
actual = actualargv = virBufferContentAndReset(&buf);
|
actual = actualargv = virBufferContentAndReset(&buf);
|
||||||
virTestClearCommandPath(actualargv);
|
|
||||||
|
|
||||||
/* The first network to be created populates the
|
/* The first network to be created populates the
|
||||||
* libvirt global chains. We must skip args for
|
* libvirt global chains. We must skip args for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user