]> git.proxmox.com Git - pve-storage.git/commitdiff
tests: zfs: complain when a first sub-test dies
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 12 Mar 2021 09:50:27 +0000 (10:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Mar 2021 12:36:53 +0000 (13:36 +0100)
Previously, $count was not increased and no test failure was reported.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
test/run_test_zfspoolplugin.pl

index 9c5e8413311929de3739777ee9c0525b621296c1..2f63f1bd898fbb9dabb35abd29ad3e14213f8e10 100755 (executable)
@@ -2714,7 +2714,10 @@ for (my $i = $start_test; $i <= $end_test; $i++) {
     eval {
        $tests->{$i}();
     };
-    warn $@ if $@;
+    if (my $err = $@) {
+       warn $err;
+       $count++;
+    }
     cleanup_zfs();
 }