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:
committed by
Thomas Lamprecht
parent
a44c18925d
commit
061c7e5e3d
@ -2714,7 +2714,10 @@ for (my $i = $start_test; $i <= $end_test; $i++) {
|
|||||||
eval {
|
eval {
|
||||||
$tests->{$i}();
|
$tests->{$i}();
|
||||||
};
|
};
|
||||||
warn $@ if $@;
|
if (my $err = $@) {
|
||||||
|
warn $err;
|
||||||
|
$count++;
|
||||||
|
}
|
||||||
cleanup_zfs();
|
cleanup_zfs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user