Commit 18fbe566 authored by Sergei Golubchik's avatar Sergei Golubchik

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
parent af781f1a
......@@ -158,7 +158,7 @@ sub do_args($$$$$) {
my $script = join "\n", @params;
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) {
die "$k is not using a script file, nowhere to write the script \n---\n$script\n---\n";
}
......
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