[04/20] tests: Simplify do_streamed_images()

Message ID 20180920084729.4523-5-diego@biurrun.de
State New
Headers show
Series
  • [01/20] tests: Use more consistent names for tests
Related show

Commit Message

Diego Biurrun Sept. 20, 2018, 8:47 a.m.
---
 tests/lavf-regression.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Patch

diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh
index 5c9a510403..10fbe4cbeb 100755
--- a/tests/lavf-regression.sh
+++ b/tests/lavf-regression.sh
@@ -20,7 +20,8 @@  do_lavf()
 
 do_streamed_images()
 {
-    file=${outdir}${1}pipe.$1
+    t="${test%pipe}"
+    file=${outdir}${t}pipe.$t
     do_avconv $file $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src -f image2pipe $ENC_OPTS -t 1 -qscale 10
     do_avconv_crc $file $DEC_OPTS -f image2pipe -i $target_path/$file
 }
@@ -110,15 +111,15 @@  fi
 #do_avconv_crc $file -i $target_path/$file
 
 if [ -n "$do_pbmpipe" ] ; then
-do_streamed_images pbm
+do_streamed_images
 fi
 
 if [ -n "$do_pgmpipe" ] ; then
-do_streamed_images pgm
+do_streamed_images
 fi
 
 if [ -n "$do_ppmpipe" ] ; then
-do_streamed_images ppm
+do_streamed_images
 fi
 
 if [ -n "$do_gif" ] ; then