[FFmpeg-cvslog] fate: Omit the results if the test passed

Timothy Gu git at videolan.org
Mon Apr 20 22:39:18 CEST 2015


ffmpeg | branch: master | Timothy Gu <timothygu99 at gmail.com> | Fri Apr 10 10:36:03 2015 -0700| [3b1e35d46dc910cef1d66f6964e6800cae5fc89b] | committer: Luca Barbato

fate: Omit the results if the test passed

The FATE server does not report this information anyway and omitting
it makes the successful run send much less data.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

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

 tests/fate-run.sh |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 790a4d1..a0a69ad 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -211,7 +211,13 @@ else
     err=1
 fi
 
-echo "${test}:${sig:-$err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile
+if [ $err -eq 0 ]; then
+    unset cmpo erro
+else
+    cmpo="$($base64 <$cmpfile)"
+    erro="$($base64 <$errfile)"
+fi
+echo "${test}:${sig:-$err}:$cmpo:$erro" >$repfile
 
 if test $err != 0 && test $gen != "no" ; then
     echo "GEN     $ref"



More information about the ffmpeg-cvslog mailing list