mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-20 09:40:38 +00:00
WIP
This commit is contained in:
@@ -77,6 +77,7 @@ eval {
|
||||
chomp(my $v = `$trunk/sandbox/test-env version 2>/dev/null`);
|
||||
$sandbox_version = $v if $v;
|
||||
};
|
||||
our $number=0;
|
||||
|
||||
our $can_load_data = can_load_data();
|
||||
|
||||
@@ -576,7 +577,7 @@ sub no_diff {
|
||||
`cat $expected_output | sed $sed_args > /tmp/pt-test-outfile-trf`;
|
||||
$expected_output = "/tmp/pt-test-outfile-trf";
|
||||
}
|
||||
|
||||
$number++;
|
||||
# Determine cmd type and run it.
|
||||
if ( ref $cmd eq 'CODE' ) {
|
||||
output($cmd, file => $tmp_file);
|
||||
@@ -654,7 +655,7 @@ sub no_diff {
|
||||
if ( $res_file ne $tmp_file ) {
|
||||
unlink $res_file if -f $res_file;
|
||||
}
|
||||
|
||||
|
||||
if ( $cmp_file ne $expected_output ) {
|
||||
unlink $cmp_file if -f $cmp_file;
|
||||
}
|
||||
|
Reference in New Issue
Block a user