mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
tests: storagepoolxml2argvtest: Use integrated command path stripping
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>
This commit is contained in:
parent
2116063791
commit
070cc66d16
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user