]> git.proxmox.com Git - qemu-server.git/commitdiff
tests: simplify outputting available migration test names
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 11:07:12 +0000 (13:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 13:06:46 +0000 (15:06 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
test/run_qemu_migrate_tests.pl

index 3a3049d7da0b6ebddc6e0ab1bae102540464b745..bbba5f9772d6e6172116e08ff084f5f87af736b9 100755 (executable)
@@ -1532,10 +1532,7 @@ my $tests = [
 my $single_test_name = shift;
 
 if (defined($single_test_name) && $single_test_name eq 'DUMP_NAMES') {
-    my $output = '';
-    foreach my $test (@{$tests}) {
-       $output .= $test->{name} . ' ';
-    }
+    my $output = join(' ', map { $_->{name} } $tests->@*);
     print "$output\n";
     exit 0;
 }