ffmpeg | branch: master | Marton Balint <c...@passwd.hu> | Sun Feb 25 15:02:32 
2024 +0100| [0b98f28c46a7e3e914c51debc461fa05861ae666] | committer: Marton 
Balint

fate: never generate auto-generated references

GEN=1 is used to generate reference files in the source tree, not
auto-generated reference samples.

Without this patch GEN=1 could overwrite the auto generated reference files
in each test where they are used causing failures.

Signed-off-by: Marton Balint <c...@passwd.hu>

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

 tests/fate-run.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 4b85fbf464..7a7344e645 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -658,7 +658,7 @@ else
 fi
 echo "${test}:${sig:-$err}:$cmpo:$erro" >$repfile
 
-if test $err != 0 && test $gen != "no" ; then
+if test $err != 0 && test $gen != "no" && test "${ref#tests/data/}" == "$ref" 
; then
     echo "GEN     $ref"
     cp -f "$outfile" "$ref"
     err=$?

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to