MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Magnus Svensson Date:August 25 2008 3:51pm
Subject:bzr commit into mysql-5.1 branch (msvensson:2660) Bug#39011
View as plain text  
#At file:///home/msvensson/mysql/5.1-rpl/

 2660 Magnus Svensson	2008-08-25
      BUG#39011 mtr reports test failure without any message or log - part 1
modified:
  mysql-test/mysql-test-run.pl

=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl	2008-08-25 08:27:24 +0000
+++ b/mysql-test/mysql-test-run.pl	2008-08-25 15:51:48 +0000
@@ -3508,12 +3508,21 @@ sub report_failure_and_restart ($) {
   if ( !defined $tinfo->{logfile} )
   {
     my $logfile= $path_current_testlog;
-    if ( defined $logfile and -f $logfile )
+    if ( defined $logfile )
     {
-      # Test failure was detected by test tool and its report
-      # about what failed has been saved to file. Save the report
-      # in tinfo
-      $tinfo->{logfile}= mtr_fromfile($logfile);
+      if ( -f $logfile )
+      {
+	# Test failure was detected by test tool and its report
+	# about what failed has been saved to file. Save the report
+	# in tinfo
+	$tinfo->{logfile}= mtr_fromfile($logfile);
+      }
+      else
+      {
+	# The test tool report didn't exist, display an
+	# error message
+	$tinfo->{logfile}= "Could not open test tool report '$logfile'";
+      }
     }
   }
 

Thread
bzr commit into mysql-5.1 branch (msvensson:2660) Bug#39011Magnus Svensson26 Aug