tests: zfs: complain when a first sub-test dies

Previously, $count was not increased and no test failure was reported.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner
2021-03-12 10:50:27 +01:00
committed by Thomas Lamprecht
parent a44c18925d
commit 061c7e5e3d

View File

@ -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();
}