summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-01-18 15:02:00 +0200
committerMichael Widenius <monty@askmonty.org>2011-01-18 15:02:00 +0200
commit58f56e12a27a55fdf70e30b96f354912fcd5a61a (patch)
tree9fa70e9fae99f690bdb37d8529b245b8072592a0 /mysql-test/mysql-test-run.pl
parent56f4e6b460981f20097d0c5c927397436ab6ebc3 (diff)
downloadmariadb-git-58f56e12a27a55fdf70e30b96f354912fcd5a61a.tar.gz
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.
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 8a709df54c3..2cdcdc6e7ac 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -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) {