]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: storagepoolxml2argvtest: Use integrated command path stripping
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Apr 2021 16:38:57 +0000 (18:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 12 Apr 2021 13:55:10 +0000 (15:55 +0200)
Replace virTestClearCommandPath by virCommandToStringFull which allows
to strip the command prefix internally.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/storagepoolxml2argvtest.c

index 967d1f21a8d6880ee9a3eda304ad592fc66e315e..0279437f6388c2bb6fd4208a54d74e7e92910c7e 100644 (file)
@@ -74,12 +74,11 @@ testCompareXMLToArgvFiles(bool shouldFail,
         goto cleanup;
     };
 
-    if (!(actualCmdline = virCommandToString(cmd, false))) {
+    if (!(actualCmdline = virCommandToStringFull(cmd, false, true))) {
         VIR_TEST_DEBUG("pool type '%s' failed to get commandline", defTypeStr);
         goto cleanup;
     }
 
-    virTestClearCommandPath(actualCmdline);
     if (virTestCompareToFile(actualCmdline, cmdline) < 0)
         goto cleanup;