mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
mtr --gdb='commands' and restarts
if mysqld is restarted during a test, the debugger script should be reused or overwritten, but not appended to the existing file
This commit is contained in:
@ -158,7 +158,7 @@ sub do_args($$$$$) {
|
|||||||
|
|
||||||
my $script = join "\n", @params;
|
my $script = join "\n", @params;
|
||||||
if ($v->{script}) {
|
if ($v->{script}) {
|
||||||
::mtr_tofile($vars{script}, subst($v->{script}, %vars)."\n".$script);
|
::mtr_tonewfile($vars{script}, subst($v->{script}, %vars)."\n".$script);
|
||||||
} elsif ($script) {
|
} elsif ($script) {
|
||||||
die "$k is not using a script file, nowhere to write the script \n---\n$script\n---\n";
|
die "$k is not using a script file, nowhere to write the script \n---\n$script\n---\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user