Commit 58f56e12 authored by Michael Widenius's avatar Michael Widenius

Updated mysql-test-run to create on failure a var/log/files.log to allow us to...

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.
parent 56f4e6b4
...@@ -4695,6 +4695,19 @@ sub after_failure ($) { ...@@ -4695,6 +4695,19 @@ sub after_failure ($) {
mkpath($save_dir) if ! -d $save_dir; 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 # Save the used config files
my %config_files = config_files($tinfo); my %config_files = config_files($tinfo);
while (my ($file, $generate) = each %config_files) { while (my ($file, $generate) = each %config_files) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment