Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4234

[PATCH] MTR testing framework leaves temporary files behind

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.0.1
    • None
    • None
    • None

    Description

      MTR testing framework leaves temporary files on the disk every time it has to use *.rdiff files. The following patch fixes that:

      --- a/mysql-test/mysql-test-run.pl
      +++ b/mysql-test/mysql-test-run.pl
      @@ -4345,6 +4345,11 @@ sub run_testcase ($$) {
           {
             my $res= $test->exit_status();
       
      +      if ($tinfo->{'result_file'} && ($tinfo->{'result_file'} =~ /\.result~$/))
      +      {
      +        unlink $tinfo->{'result_file'};
      +      }
      +
             if ($res == 0 and $opt_warnings and check_warnings($tinfo) )
             {
              # Test case suceeded, but it has produced unexpected

      Attachments

        Activity

          People

            serg Sergei Golubchik
            pivanof Pavel Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.