[Commits] Rev 3017: Updated mysql-test-run to create on failure a var/log/files.log to allow us to analyze what was in the var directory on failure in lp:maria/5.1

Michael Widenius monty at askmonty.org
Tue Jan 18 15:02:01 EET 2011


At lp:maria/5.1

------------------------------------------------------------
revno: 3017
revision-id: monty at askmonty.org-20110118130200-2rtb3v7vqe855h0j
parent: igor at askmonty.org-20110114191601-azfv1i9r215g6gha
committer: Michael Widenius <monty at askmonty.org>
branch nick: maria-5.1
timestamp: Tue 2011-01-18 15:02:00 +0200
message:
  Updated mysql-test-run to create on failure a var/log/files.log to allow us to analyze what was in the var directory on failure
  This should help us analyze failures like innodb_mysql.test that failes strangely in a CREATE TABLE statement.
-------------- next part --------------
=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl	2011-01-10 21:22:40 +0000
+++ b/mysql-test/mysql-test-run.pl	2011-01-18 13:02:00 +0000
@@ -4695,6 +4695,19 @@ sub after_failure ($) {
 
   mkpath($save_dir) if ! -d $save_dir;
 
+  #
+  # Create a log of files in vardir (good for buildbot)
+  #
+  if (!IS_WINDOWS)
+  {
+    my $Flog= IO::File->new("$opt_vardir/log/files.log", "w");
+    if ($Flog)
+    {
+      print $Flog scalar(`/bin/ls -Rl $opt_vardir/*`);
+      close($Flog);
+    }
+  }
+
   # Save the used config files
   my %config_files = config_files($tinfo);
   while (my ($file, $generate) = each %config_files) {



More information about the commits mailing list