Commit ed7409fe authored by Mans Rullgard's avatar Mans Rullgard

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: 's avatarMans Rullgard <mans@mansr.com>
parent 6797d194
...@@ -67,7 +67,7 @@ do_avconv() ...@@ -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() ...@@ -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
} }
......
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