aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2024-02-25 15:02:32 +0100
committerMarton Balint <cus@passwd.hu>2024-03-02 19:13:03 +0100
commit0b98f28c46a7e3e914c51debc461fa05861ae666 (patch)
tree5f80f5046c30cb603249258f764107a97e518e2e
parent4ebf478f4c5c31535f36ad648e7a8615441b90a5 (diff)
downloadffmpeg-0b98f28c46a7e3e914c51debc461fa05861ae666.tar.gz
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 <cus@passwd.hu>
-rwxr-xr-xtests/fate-run.sh2
1 files changed, 1 insertions, 1 deletions
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=$?