From: Thomas Lamprecht Date: Fri, 19 May 2023 11:07:12 +0000 (+0200) Subject: tests: simplify outputting available migration test names X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=1edeff742d841425dbb8eb691bb607471d2866da tests: simplify outputting available migration test names Signed-off-by: Thomas Lamprecht --- diff --git a/test/run_qemu_migrate_tests.pl b/test/run_qemu_migrate_tests.pl index 3a3049d..bbba5f9 100755 --- a/test/run_qemu_migrate_tests.pl +++ b/test/run_qemu_migrate_tests.pl @@ -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; }