tests: simplify outputting available migration test names

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-19 13:07:12 +02:00
parent 5591892520
commit 1edeff742d

View File

@ -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;
}