]> git.proxmox.com Git - qemu-server.git/commitdiff
tests: do not use for-loop for globs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Oct 2020 13:32:25 +0000 (15:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Oct 2020 13:32:31 +0000 (15:32 +0200)
they are rather inefficient for this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
test/run_config2command_tests.pl

index b08968f7c3cb02faec832c533bdc4f0823ba6940..8011265ab4a62ec558c45300c0948a9026b8e651 100755 (executable)
@@ -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;
     }
 }