[FFmpeg-cvslog] r24623 - trunk/tests/fate-run.sh

mru subversion
Sat Jul 31 18:53:10 CEST 2010


Author: mru
Date: Sat Jul 31 18:53:09 2010
New Revision: 24623

Log:
fate: translate exit status to signal name

Modified:
   trunk/tests/fate-run.sh

Modified: trunk/tests/fate-run.sh
==============================================================================
--- trunk/tests/fate-run.sh	Sat Jul 31 18:50:27 2010	(r24622)
+++ trunk/tests/fate-run.sh	Sat Jul 31 18:53:09 2010	(r24623)
@@ -106,6 +106,11 @@ mkdir -p "$outdir"
 $command > "$outfile" 2>$errfile
 err=$?
 
+if [ $err -gt 128 ]; then
+    sig=$(kill -l $err 2>/dev/null)
+    test "${sig}" = "${sig%[^A-Z]*}" || unset sig
+fi
+
 if test -e "$ref"; then
     case $cmp in
         diff)   diff -u -w "$ref" "$outfile"            >$cmpfile ;;
@@ -120,7 +125,7 @@ else
     err=1
 fi
 
-echo "${test}:${err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile
+echo "${test}:${sig:-$err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile
 
 test $err = 0 && rm -f $outfile $errfile $cmpfile $cleanfiles
 exit $err



More information about the ffmpeg-cvslog mailing list