mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-08 10:18:26 +00:00
PerconaTest: Stop no_diff from mistakenly unlinking samples
This commit is contained in:
@@ -617,8 +617,13 @@ sub no_diff {
|
|||||||
`rm -f $tmp_file $tmp_file_orig /tmp/pt-test-outfile-trf >/dev/null 2>&1`
|
`rm -f $tmp_file $tmp_file_orig /tmp/pt-test-outfile-trf >/dev/null 2>&1`
|
||||||
unless $ENV{KEEP_OUTPUT} || $args{keep_output};
|
unless $ENV{KEEP_OUTPUT} || $args{keep_output};
|
||||||
|
|
||||||
1 while unlink $res_file;
|
if ( $res_file ne $tmp_file ) {
|
||||||
1 while unlink $cmp_file;
|
1 while unlink $res_file;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $cmp_file ne $expected_output ) {
|
||||||
|
1 while unlink $cmp_file;
|
||||||
|
}
|
||||||
|
|
||||||
return !$retval;
|
return !$retval;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user