[PATCH 10/24] nwfilterxml2firewalltest: Strip path from test output via virCommandSetDryRun
Peter Krempa
pkrempa at redhat.com
Wed Apr 7 15:09:33 UTC 2021
Enable the internal path clearing instead of using
virTestClearCommandPath.
Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
tests/nwfilterxml2firewalltest.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/nwfilterxml2firewalltest.c b/tests/nwfilterxml2firewalltest.c
index 446461c122..b974f9cb1a 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);
--
2.30.2
More information about the libvir-list
mailing list