]> git.sesse.net Git - ffmpeg/commitdiff
tests: Fix bash errors in lavf_container tests.
authorAndrey Semashev <andrey.semashev@gmail.com>
Wed, 28 Aug 2019 15:32:37 +0000 (18:32 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Sep 2019 16:16:06 +0000 (18:16 +0200)
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: Limin Wang <lance.lmwang@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tests/fate-run.sh

index 2f1991da52b37c6da7d9d65ebaf4d62b1c195e56..aec12c16a35607d5f84ed3178c9705b06bf49f12 100755 (executable)
@@ -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
 }