From 79bb3d3e934645bfd4ebcd0c96f1d40303e28353 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 29 Apr 2014 10:19:16 +0200 Subject: g-i: create fake screenshot if taking a real one fails --- bin/g-i-installation.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 70136286..cd887ec8 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -777,7 +777,7 @@ monitor_system() { TIMEOUT=$3 fi cd $RESULTS - sleep 8 # chosen by fair dice roll + sleep 4 # chosen by fair dice roll hourlimit=16 # hours echo "Taking screenshots every 2 seconds now, until qemu ends for whatever reasons or $hourlimit hours have passed or if the test seems to hang." echo @@ -797,10 +797,8 @@ monitor_system() { convert $CONVERTOPTS snapshot_${PRINTF_NR}.jpg snapshot_${PRINTF_NR}.ppm rm snapshot_${PRINTF_NR}.jpg else - echo "could not take vncsnapshot from $DISPLAY, lets try again..." - let NR=NR-1 - PRINTF_NR=$(printf "%06d" $NR) - echo "$PRINTF_NR: $(date)" + echo "$PRINTF_NR: $(date) - could not take vncsnapshot from $DISPLAY - using a blank fake one instead" + convert -size $VIDEOSIZE xc:none snapshot_${PRINTF_NR}.ppm fi # give signal we are still running if [ $(($NR % 14)) -eq 0 ] ; then -- cgit v1.2.3-70-g09d2