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:
Sergei Golubchik 2021-05-03 18:01:30 +02:00
parent af781f1ac4
commit 18fbe566bd

View File

@ -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";
}