Skip to content

Commit

Permalink
Report artificial failure before mtr exits
Browse files Browse the repository at this point in the history
  • Loading branch information
an3l committed Jun 3, 2021
1 parent 6d2f0d2 commit 529cf76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -504,6 +504,7 @@ _UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
*.stackdump

This comment has been minimized.

Copy link
@an3l

an3l Jun 3, 2021

Author Contributor

Note to wlad:
Have noted on windows,when using git rebase (where my default editor is vim, which doesn't exit there) stackdump is created:

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        bld_10.6/
        vim.exe.stackdump

# SQL Server files
*.mdf
Expand Down
10 changes: 10 additions & 0 deletions mysql-test/mysql-test-run.pl
Expand Up @@ -5086,6 +5086,16 @@ ($$)
$opt_start_timeout, $mysqld->{'proc'}, $warn_seconds))
{
my $mname= $mysqld->name();
mtr_report("Ovdje sam");

This comment has been minimized.

Copy link
@an3l

an3l Jun 3, 2021

Author Contributor

It is visible in -verbose mode on Windows, but not without, why?
Same mtr_report_test.
Fix indentation.

mtr_report($path_current_testlog);
# Report failure about the last test case before exit
my $test_name= mtr_grab_file($path_current_testlog);
mtr_report("Ovdje sam");
$test_name =~ s/^CURRENT_TEST:\s//;
my $tinfo = My::Test->new(name => $test_name);
$tinfo->{result}= 'MTR_RES_FAILED';
$tinfo->{logfile}=$path_current_testlog;
mtr_report_test($tinfo);

This comment has been minimized.

Copy link
@an3l

an3l Jun 4, 2021

Author Contributor

mtr_report_test is not showing the artificial test case in Windows.

mtr_error("Failed to start mysqld $mname with command $exe");
}

Expand Down

0 comments on commit 529cf76

Please sign in to comment.