Fix pt-log-player tests.

This commit is contained in:
Daniel Nichter
2011-07-14 11:37:49 -06:00
parent 716f05e451
commit 31398457f4
18 changed files with 235 additions and 231 deletions

View File

@@ -483,6 +483,10 @@ sub no_diff {
`sed $sed_args $tmp_file`;
}
}
if ( defined(my $sort_args = $args{sort}) ) {
`cat $tmp_file | sort $sort_args > $tmp_file-2`;
`mv $tmp_file-2 $tmp_file`;
}
# diff the outputs.
my $retval = system("diff $tmp_file $expected_output");