Commit 6d9d053e authored by Andrey Semashev's avatar Andrey Semashev Committed by Michael Niedermayer

tests: Fix bash errors in lavf_container tests.

Because the lavf_container is sometimes called with only 2 arguments,
fate tests produce bash errors like this:

  tests/fate-run.sh: 299: test: =: unexpected operator

This commit fixes this.
Reviewed-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0c9e0101
......@@ -296,7 +296,7 @@ lavf_container(){
outdir="tests/data/lavf"
file=${outdir}/lavf.$t
do_avconv $file $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src $DEC_OPTS -ar 44100 -f s16le $1 -i $pcm_src "$ENC_OPTS -metadata title=lavftest" -b:a 64k -t 1 -qscale:v 10 $2
test $3 = "disable_crc" ||
test "$3" = "disable_crc" ||
do_avconv_crc $file $DEC_OPTS -i $target_path/$file $3
}
......
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