From: Thomas Lamprecht Date: Mon, 19 Oct 2020 13:32:25 +0000 (+0200) Subject: tests: do not use for-loop for globs X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=ce11958aab51b5fcc514cb1253bcff96c2a85df4 tests: do not use for-loop for globs they are rather inefficient for this Signed-off-by: Thomas Lamprecht --- diff --git a/test/run_config2command_tests.pl b/test/run_config2command_tests.pl index b08968f..8011265 100755 --- a/test/run_config2command_tests.pl +++ b/test/run_config2command_tests.pl @@ -401,7 +401,7 @@ print "testing config to command stabillity\n"; if (my $file = shift) { do_test $file; } else { - foreach my $file () { + while (my $file = ) { do_test $file; } }