r2661 - people/bmsleight/autotesting

bmsleight-guest at alioth.debian.org bmsleight-guest at alioth.debian.org
Thu Aug 2 19:26:42 UTC 2007


Author: bmsleight-guest
Date: 2007-08-02 19:26:41 +0000 (Thu, 02 Aug 2007)
New Revision: 2661

Modified:
   people/bmsleight/autotesting/video-qemu-booting-iso.sh
Log:
To solve Tracker item #304666

Modified: people/bmsleight/autotesting/video-qemu-booting-iso.sh
===================================================================
--- people/bmsleight/autotesting/video-qemu-booting-iso.sh	2007-08-02 07:23:08 UTC (rev 2660)
+++ people/bmsleight/autotesting/video-qemu-booting-iso.sh	2007-08-02 19:26:41 UTC (rev 2661)
@@ -171,7 +171,23 @@
 convert $TMP_DIR/minilogo.png  -fill grey50 -colorize 40 $TMP_DIR/minilogo.png
 VNCREC_MOVIE_CMD="convert xpm:-  $TMP_DIR/image-%05d.jpg"
 export VNCREC_MOVIE_CMD
-vncrec  -movie $TMP_DIR/qemu.1.vnc
+
+vncrec  -movie $TMP_DIR/qemu.1.vnc >/dev/null 2>&1 &
+# vncrec can hand sometimes hang and not terminate, after all frames have been generated.
+# So we monitor vncrec and kill vncrec when no further frames are being generated
+MORE_FRAMES=1
+NUMBER_FRAMES=0
+while [ "$MORE_FRAMES" -gt "$NUMBER_FRAMES" ]
+do
+ NUMBER_FRAMES="$MORE_FRAMES"
+ sleep 60
+ MORE_FRAMES=$(ls $TMP_DIR/image-*.jpg | wc -w)
+ echo "Frames: $NUMBER_FRAMES to $MORE_FRAMES generated"
+done
+ps ax | grep vncrec
+killall vncrec
+echo "vncrec -movie killed"
+
 for i in $TMP_DIR/image-*.jpg
 do
  convert $i -resize $CONVERT_DIM $i




More information about the debian-live-changes mailing list