1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

mtr: abort when a suite.pm fails to load, don't just ignore the errors.

Fix all suite.pm files that had errors and test files that were skipped because of that
This commit is contained in:
Sergei Golubchik
2013-12-22 17:14:05 +01:00
parent 902491c397
commit 91b82a0f73
6 changed files with 9 additions and 7 deletions

View File

@ -250,6 +250,7 @@ sub load_suite_object {
unless (defined $suites{$suitename}) {
if (-f "$suitedir/suite.pm") {
$suite= do "$suitedir/suite.pm";
mtr_error("Cannot load $suitedir/suite.pm: $@") if $@;
unless (ref $suite) {
my $comment = $suite;
$suite = My::Suite->new();