1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

storagepoolxml2argvtest: Use internal wrapping of command line arguments

virCommandToString has the possibility to return an already wrapped
string with better format than what we get from the test wrapper script.

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:
Peter Krempa 2021-03-31 10:46:36 +02:00
parent 06d7151664
commit eba7491c59
15 changed files with 42 additions and 16 deletions

View File

@ -1,3 +1,5 @@
mount \
-o nodev,nosuid,noexec \
-t ext3 /dev/sda6 /mnt
-t ext3 \
/dev/sda6 \
/mnt

View File

@ -1 +1,4 @@
mount -t ext3 /dev/sda6 /mnt
mount \
-t ext3 \
/dev/sda6 \
/mnt

View File

@ -1 +1,2 @@
vgchange -aly HostVG
vgchange \
-aly HostVG

View File

@ -1 +1,2 @@
vgchange -aly zily
vgchange \
-aly zily

View File

@ -1 +1,2 @@
vgchange -aly HostVG
vgchange \
-aly HostVG

View File

@ -1 +1,2 @@
vgchange -aly HostVG
vgchange \
-aly HostVG

View File

@ -1,2 +1,4 @@
mount \
-o nodev,nosuid,noexec localhost:/var/lib/libvirt/images /mnt
-o nodev,nosuid,noexec \
localhost:/var/lib/libvirt/images \
/mnt

View File

@ -1 +1,3 @@
mount localhost:/var/lib/libvirt/images /mnt
mount \
localhost:/var/lib/libvirt/images \
/mnt

View File

@ -1,3 +1,5 @@
mount \
-o nodev,nosuid,noexec,guest \
-t cifs //example.com/samba_share /mnt/cifs
-t cifs \
//example.com/samba_share \
/mnt/cifs

View File

@ -1,3 +1,5 @@
mount \
-o nodev,nosuid,noexec,direct-io-mode=1 \
-t glusterfs example.com:/volume /mnt/gluster
-t glusterfs \
example.com:/volume \
/mnt/gluster

View File

@ -1,3 +1,5 @@
mount \
-o nodev,nosuid,noexec \
-t nfs localhost:/var/lib/libvirt/images /mnt
-t nfs \
localhost:/var/lib/libvirt/images \
/mnt

View File

@ -1,3 +1,5 @@
mount \
-o nodev,nosuid,noexec,nfsvers=3,sync,lazytime \
-t nfs localhost:/var/lib/libvirt/images /mnt
-t nfs \
localhost:/var/lib/libvirt/images \
/mnt

View File

@ -1,3 +1,5 @@
mount \
-o nodev,nosuid,noexec,nfsvers=3 \
-t nfs localhost:/var/lib/libvirt/images /mnt
-t nfs \
localhost:/var/lib/libvirt/images \
/mnt

View File

@ -1 +1,4 @@
mount -t nfs localhost:/var/lib/libvirt/images /mnt
mount \
-t nfs \
localhost:/var/lib/libvirt/images \
/mnt

View File

@ -74,12 +74,12 @@ testCompareXMLToArgvFiles(bool shouldFail,
goto cleanup;
};
if (!(actualCmdline = virCommandToStringFull(cmd, false, true))) {
if (!(actualCmdline = virCommandToStringFull(cmd, true, true))) {
VIR_TEST_DEBUG("pool type '%s' failed to get commandline", defTypeStr);
goto cleanup;
}
if (virTestCompareToFile(actualCmdline, cmdline) < 0)
if (virTestCompareToFileFull(actualCmdline, cmdline, false) < 0)
goto cleanup;
ret = 0;