[FFmpeg-cvslog] tests/lavfi-regression: name temporary files after $testname in do_lavfi_pixfmts()

Stefano Sabatini git at videolan.org
Thu Sep 6 01:15:04 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Sep  6 01:09:36 2012 +0200| [bdfffa66a051909239781b9108b2cbe0fdc85f3d] | committer: Stefano Sabatini

tests/lavfi-regression: name temporary files after $testname in do_lavfi_pixfmts()

Fix a failure when running do_lavfi_pixfmts() for the
lavfi-tinterlace_merge and lavfi-tinterlace_pad tests concurrently.

Since they were using the same names for the temporary files, the first
ending test was removing them, and the second test was failing at
removing unexisting files.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bdfffa66a051909239781b9108b2cbe0fdc85f3d
---

 tests/lavfi-regression.sh |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh
index 08c51d8..ac6bb7f 100755
--- a/tests/lavfi-regression.sh
+++ b/tests/lavfi-regression.sh
@@ -86,10 +86,10 @@ do_lavfi_pixfmts(){
     filter_args=$2
 
     showfiltfmts="$target_exec $target_path/libavfilter/filtfmts-test"
-    scale_exclude_fmts=${outfile}${1}_scale_exclude_fmts
-    scale_in_fmts=${outfile}${1}_scale_in_fmts
-    scale_out_fmts=${outfile}${1}_scale_out_fmts
-    in_fmts=${outfile}${1}_in_fmts
+    scale_exclude_fmts=${outfile}${testname}_scale_exclude_fmts
+    scale_in_fmts=${outfile}${testname}_scale_in_fmts
+    scale_out_fmts=${outfile}${testname}_scale_out_fmts
+    in_fmts=${outfile}${testname}_in_fmts
 
     # exclude pixel formats which are not supported as input
     $showfiltfmts scale | awk -F '[ \r]' '/^INPUT/{ fmt=substr($3, 5); print fmt }' | sort >$scale_in_fmts



More information about the ffmpeg-cvslog mailing list