Skip to content
Snippets Groups Projects
Commit ed7409fe authored by Mans Rullgard's avatar Mans Rullgard
Browse files

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: default avatarMans Rullgard <mans@mansr.com>
parent 6797d194
No related branches found
No related tags found
No related merge requests found
...@@ -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
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment