From: Peter Krempa Date: Tue, 6 Apr 2021 09:21:21 +0000 (+0200) Subject: networkxml2firewalltest: Strip path from test output via virCommandSetDryRun X-Git-Tag: v7.3.0-rc1~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76af07c27851b9750150b17fef5a63da43264ee6;p=thirdparty%2Flibvirt.git networkxml2firewalltest: Strip path from test output via virCommandSetDryRun Enable the internal path clearing instead of using virTestClearCommandPath. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko Reviewed-by: Pavel Hrdina --- diff --git a/tests/networkxml2firewalltest.c b/tests/networkxml2firewalltest.c index 2974d3f2af..16249c49fd 100644 --- a/tests/networkxml2firewalltest.c +++ b/tests/networkxml2firewalltest.c @@ -98,7 +98,7 @@ static int testCompareXMLToArgvFiles(const char *xml, char *actual; g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew(); - virCommandSetDryRun(dryRunToken, &buf, false, false, testCommandDryRun, NULL); + virCommandSetDryRun(dryRunToken, &buf, false, true, testCommandDryRun, NULL); if (!(def = virNetworkDefParseFile(xml, NULL))) goto cleanup; @@ -107,7 +107,6 @@ static int testCompareXMLToArgvFiles(const char *xml, goto cleanup; actual = actualargv = virBufferContentAndReset(&buf); - virTestClearCommandPath(actualargv); /* The first network to be created populates the * libvirt global chains. We must skip args for