fate: make tar command configurable
authorMåns Rullgård <mans@mansr.com>
Sun, 1 Aug 2010 12:29:00 +0000 (12:29 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 1 Aug 2010 12:29:00 +0000 (12:29 +0000)
The 'tar' variable should be set to a command writing a tar archive
of the named files to stdout, typically "tar c" or "tar cf -"

Originally committed as revision 24649 to svn://svn.ffmpeg.org/ffmpeg/trunk

tests/fate.sh

index 5ca8500..7e5deee 100755 (executable)
@@ -11,6 +11,7 @@ test -r "$config"  || die "usage: fate.sh <config>"
 
 workdir=$(dirname $config)
 make=make
+tar='tar c'
 
 . "$config"
 
@@ -77,7 +78,7 @@ report(){
     date=$(date -u +%Y%m%d%H%M%S)
     echo "fate:0:${date}:${slot}:${version}:$1:$2" >report
     cat ${build}/config.fate ${build}/tests/data/fate/*.rep >>report
-    test -n "$fate_recv" && tar cz report *.log | $fate_recv
+    test -n "$fate_recv" && $tar report *.log | gzip | $fate_recv
 }
 
 fail(){