tests: do not use for-loop for globs

they are rather inefficient for this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-19 15:32:25 +02:00
parent 6ef6d68f6c
commit ce11958aab

View File

@ -401,7 +401,7 @@ print "testing config to command stabillity\n";
if (my $file = shift) {
do_test $file;
} else {
foreach my $file (<cfg2cmd/*.conf>) {
while (my $file = <cfg2cmd/*.conf>) {
do_test $file;
}
}