[pve-devel] [PATCH qemu-server 07/10] make tidy

Wolfgang Bumiller
2025-07-29T11:23:14Z

src/test/run_qemu_img_convert_tests.pl | 53 ++++++++++++++++++--------
1 file changed, 38 insertions(+), 15 deletions(-)

diff --git a/src/test/run_qemu_img_convert_tests.pl b/src/test/run_qemu_img_convert_tests.pl
index 2acbbef4..cfb1586f 100755
--- a/src/test/run_qemu_img_convert_tests.pl
+++ b/src/test/run_qemu_img_convert_tests.pl
@@ -92,8 +92,11 @@ my $storage_config = {
my $tests = [
{
name => 'qcow2raw',
- parameters =>
- ["local:$vmid/vol-vm-$vmid-disk-0.qcow2", "local:$vmid/vol-vm-$vmid-disk-0.raw", 1024 * 10],
+ parameters => [
+ "local:$vmid/vol-vm-$vmid-disk-0.qcow2",
+ "local:$vmid/vol-vm-$vmid-disk-0.raw",
+ 1024 * 10,
+ ],
expected => [
"/usr/bin/qemu-img",
"convert",
@@ -109,8 +112,11 @@ my $tests = [
},
{
name => "raw2qcow2",
- parameters =>
- ["local:$vmid/vol-vm-$vmid-disk-0.raw", "local:$vmid/vol-vm-$vmid-disk-0.qcow2", 1024 * 10],
+ parameters => [
+ "local:$vmid/vol-vm-$vmid-disk-0.raw",
+ "local:$vmid/vol-vm-$vmid-disk-0.qcow2",
+ 1024 * 10,
+ ],
expected => [
"/usr/bin/qemu-img",
"convert",
@@ -160,8 +166,11 @@ my $tests = [
},
{
name => "local2zos",
- parameters =>
- ["local:$vmid/vol-vm-$vmid-disk-0.raw", "zfs-over-iscsi:vol-vm-$vmid-disk-0", 1024 * 10],
+ parameters => [
+ "local:$vmid/vol-vm-$vmid-disk-0.raw",
+ "zfs-over-iscsi:vol-vm-$vmid-disk-0",
+ 1024 * 10,
+ ],
expected => [
"/usr/bin/qemu-img",
"convert",
@@ -176,8 +185,11 @@ my $tests = [
},
{
name => "zos2local",
- parameters =>
- ["zfs-over-iscsi:vol-vm-$vmid-disk-0", "local:$vmid/vol-vm-$vmid-disk-0.raw", 1024 * 10],
+ parameters => [
+ "zfs-over-iscsi:vol-vm-$vmid-disk-0",
+ "local:$vmid/vol-vm-$vmid-disk-0.raw",
+ 1024 * 10,
+ ],
expected => [
"/usr/bin/qemu-img",
"convert",
@@ -279,8 +291,11 @@ my $tests = [
},
{
name => "notexistingstorage",
- parameters =>
- ["local-lvm:vol-vm-$vmid-disk-0", "not-existing:$vmid/vol-vm-$vmid-disk-0.raw", 1024 * 10],
+ parameters => [
+ "local-lvm:vol-vm-$vmid-disk-0",
+ "not-existing:$vmid/vol-vm-$vmid-disk-0.raw",
+ 1024 * 10,
+ ],
expected => "storage 'not-existing' does not exist\n",
},
{
@@ -306,8 +321,11 @@ my $tests = [
},
{
name => "efidisk",
- parameters =>
- ["/usr/share/kvm/OVMF_VARS-pure-efi.fd", "local:$vmid/vol-vm-$vmid-disk-0.raw", 1024 * 10],
+ parameters => [
+ "/usr/share/kvm/OVMF_VARS-pure-efi.fd",
+ "local:$vmid/vol-vm-$vmid-disk-0.raw",
+ 1024 * 10,
+ ],
expected => [
"/usr/bin/qemu-img",
"convert",
@@ -321,8 +339,11 @@ my $tests = [
},
{
name => "efi2zos",
- parameters =>
- ["/usr/share/kvm/OVMF_VARS-pure-efi.fd", "zfs-over-iscsi:vol-vm-$vmid-disk-0", 1024 * 10],
+ parameters => [
+ "/usr/share/kvm/OVMF_VARS-pure-efi.fd",
+ "zfs-over-iscsi:vol-vm-$vmid-disk-0",
+ 1024 * 10,
+ ],
expected => [
"/usr/bin/qemu-img",
"convert",
@@ -551,7 +572,9 @@ my $tests = [
{
name => "lvmqcow2_external_snapshot_target",
parameters => [
- "local:$vmid/vol-vm-$vmid-disk-0.raw", "lvm-store:vol-vm-$vmid-disk-0.qcow2", 1024 * 10,
+ "local:$vmid/vol-vm-$vmid-disk-0.raw",
+ "lvm-store:vol-vm-$vmid-disk-0.qcow2",
+ 1024 * 10,
],
expected => [
"/usr/bin/qemu-img",