Commit 374ec681 authored by Claudio Freire's avatar Claudio Freire Committed by Michael Niedermayer

tests/fate-run: Print more details on failure of stddev / filesize compares

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6b8263b0
...@@ -50,6 +50,12 @@ do_tiny_psnr(){ ...@@ -50,6 +50,12 @@ do_tiny_psnr(){
size_cmp=$(compare $size1 $size2 $size_tolerance) size_cmp=$(compare $size1 $size2 $size_tolerance)
if [ "$val_cmp" != 0 ] || [ "$size_cmp" != 0 ]; then if [ "$val_cmp" != 0 ] || [ "$size_cmp" != 0 ]; then
echo "$psnr" echo "$psnr"
if [ "$val_cmp" != 0 ]; then
echo "$3: |$val - $cmp_target| >= $fuzz"
fi
if [ "$size_cmp" != 0 ]; then
echo "size: |$size1 - $size2| >= $size_tolerance"
fi
return 1 return 1
fi fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment