[MDEV-4234] [PATCH] MTR testing framework leaves temporary files behind Created: 2013-03-03  Updated: 2013-03-03  Resolved: 2013-03-03

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Pavel Ivanov Assignee: Sergei Golubchik
Resolution: Not a Bug Votes: 0
Labels: 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



 Comments   
Comment by Sergei Golubchik [ 2013-03-03 ]

It's a feature, not a bug. These files cache the result of patching. They're intentionally named to match "*" glob, because bzr ignores there files. And - see elsewhere - mtr checks the timestamp of the rdiff file and a timestamp of the .result file and regenerates the latter as necessary.

Generated at Thu Feb 08 06:54:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.