This commit is contained in:
Carlos Salguero
2018-01-16 11:11:16 -03:00
parent 4b563ef714
commit 1d1c13fbcb
18 changed files with 254 additions and 164 deletions

View File

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