PerconaTest: Stop no_diff from mistakenly unlinking samples

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-06-04 21:57:58 -03:00
parent 939e9a84b6
commit 9aaafe8478

View File

@@ -617,8 +617,13 @@ sub no_diff {
`rm -f $tmp_file $tmp_file_orig /tmp/pt-test-outfile-trf >/dev/null 2>&1`
unless $ENV{KEEP_OUTPUT} || $args{keep_output};
1 while unlink $res_file;
1 while unlink $cmp_file;
if ( $res_file ne $tmp_file ) {
1 while unlink $res_file;
}
if ( $cmp_file ne $expected_output ) {
1 while unlink $cmp_file;
}
return !$retval;
}