fate: work around non-standard wc implementations

On some systems, the wc command prints spaces before the first
number causing mismatches with the test references.  Using the
output of wc as arguments to echo removes any extra whitespace.

Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
Mans Rullgard 2012-05-15 22:02:42 +01:00
parent 6797d1948b
commit ed7409fe9d

View File

@ -67,7 +67,7 @@ do_avconv()
elif [ $f = $pcm_dst ] ; then elif [ $f = $pcm_dst ] ; then
$tiny_psnr $f $pcm_ref 2 $tiny_psnr $f $pcm_ref 2
else else
wc -c $f echo $(wc -c $f)
fi fi
} }
@ -82,7 +82,7 @@ do_avconv_nomd5()
elif [ $f = $pcm_dst ] ; then elif [ $f = $pcm_dst ] ; then
$tiny_psnr $f $pcm_ref 2 $tiny_psnr $f $pcm_ref 2
else else
wc -c $f echo $(wc -c $f)
fi fi
} }