mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Print names of testcases that failed check_testcase, this makes it easier
to run the whole testcase to find wich testcases need to be checked more carefully and the just "copy and paste" the suspicious test case names to a new mysql-test-run.pl command.
This commit is contained in:
@ -3932,6 +3932,10 @@ sub run_testcase_start_servers($) {
|
||||
# Before a testcase, run in record mode, save result file to var
|
||||
# After testcase, run and compare with the recorded file, they should be equal!
|
||||
#
|
||||
# RETURN VALUE
|
||||
# 0 OK
|
||||
# 1 Check failed
|
||||
#
|
||||
sub run_check_testcase ($$) {
|
||||
|
||||
my $mode= shift;
|
||||
@ -3976,6 +3980,7 @@ sub run_check_testcase ($$) {
|
||||
{
|
||||
mtr_error("Could not execute 'check-testcase' $mode testcase");
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
||||
@ -4165,7 +4170,11 @@ sub run_mysqltest ($) {
|
||||
{
|
||||
if ($mysqld->{'pid'})
|
||||
{
|
||||
run_check_testcase("after", $mysqld);
|
||||
if (run_check_testcase("after", $mysqld))
|
||||
{
|
||||
# Check failed, mark the test case with that info
|
||||
$tinfo->{'check_testcase_failed'}= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user