]> git.sesse.net Git - ffmpeg/commitdiff
tests: Do not include stdout/stderr or diff if the test passed
authorTimothy Gu <timothygu99@gmail.com>
Fri, 10 Apr 2015 17:51:11 +0000 (10:51 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Apr 2015 20:20:36 +0000 (22:20 +0200)
FATE currently discards this information anyway, so why waste the
disk space?

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/fate-run.sh

index fec3c5e152f97517da87e63b159ba849ab2ec509..74f264533d8f0ebe3cd5277ebea058fa7431a19f 100755 (executable)
@@ -252,7 +252,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"