From: Peter Krempa Date: Tue, 6 Apr 2021 09:21:21 +0000 (+0200) Subject: nwfilterxml2firewalltest: Strip path from test output via virCommandSetDryRun X-Git-Tag: v7.3.0-rc1~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17a8d82791b99cb52caf8f061e6d62070ef4fdd8;p=thirdparty%2Flibvirt.git nwfilterxml2firewalltest: 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/nwfilterxml2firewalltest.c b/tests/nwfilterxml2firewalltest.c index f72cd06e58..44b2ad04ba 100644 --- a/tests/nwfilterxml2firewalltest.c +++ b/tests/nwfilterxml2firewalltest.c @@ -375,7 +375,7 @@ static int testCompareXMLToArgvFiles(const char *xml, memset(&inst, 0, sizeof(inst)); - virCommandSetDryRun(dryRunToken, &buf, false, false, NULL, NULL); + virCommandSetDryRun(dryRunToken, &buf, false, true, NULL, NULL); if (!vars) goto cleanup; @@ -392,7 +392,6 @@ static int testCompareXMLToArgvFiles(const char *xml, goto cleanup; actualargv = virBufferContentAndReset(&buf); - virTestClearCommandPath(actualargv); testRemoveCommonRules(actualargv);