mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
./mtr --skip-not-found
New mtr option --skip-not-found makes it to show not found tests as skipped main.a [ skipped ] not found (but only if the test was specified with the suite name) and not error out early with mysql-test-run: *** ERROR: Could not find 'a' in 'main' suite This is useful in buildbot, on builders that generate the list of tests dynamically.
This commit is contained in:
@ -154,7 +154,17 @@ sub collect_test_cases ($$$$) {
|
||||
{
|
||||
push (@$cases, @this_case);
|
||||
}
|
||||
else
|
||||
elsif ($::opt_skip_not_found)
|
||||
{
|
||||
push @$cases, My::Test->new
|
||||
(
|
||||
name => "$sname.$tname",
|
||||
shortname => $tname,
|
||||
skip => 1,
|
||||
comment => 'not found',
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
mtr_error("Could not find '$tname' in '$sname' suite");
|
||||
}
|
||||
|
Reference in New Issue
Block a user