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:
parent
af781f1ac4
commit
18fbe566bd
@ -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";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user