]> git.proxmox.com Git - qemu-server.git/blobdiff - test/run_config2command_tests.pl
tests: do not use for-loop for globs
[qemu-server.git] / 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;
     }
 }