mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user