]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
nwfilterxml2firewalltest: Strip path from test output via virCommandSetDryRun
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Apr 2021 09:21:21 +0000 (11:21 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 12 Apr 2021 13:55:10 +0000 (15:55 +0200)
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>
tests/nwfilterxml2firewalltest.c

index f72cd06e58fc49a28a0c803c8ea16bcafd508eec..44b2ad04baf5a54d5793e93e91102be7514a4d0a 100644 (file)
@@ -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);