summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-26 00:59:38 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-26 00:59:38 +0100
commit1b4ae866ffb3192e781e7e82a27f8a9ba03d0de7 (patch)
tree018944ed5e67111bfe78af739655fd87a217075e /bin
parent84a2eb54514dc351796368e1c6bbc40a86c93b19 (diff)
downloadjenkins.debian.net-1b4ae866ffb3192e781e7e82a27f8a9ba03d0de7.tar.xz
fixup: use compare from imagemagick to count number of different pixels in two images, to test if the installation hangs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/g-i-installation.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index 388f4332..bd0b452b 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -400,7 +400,7 @@ monitor_system() {
PRINTF_OLD=$(printf "%06d" $OLD)
# test if this screenshot is basically the same as the one 400 screenshots ago
# 200 pixels difference between to images is tolerated, to ignore updating clocks
- PIXEL=$(compare -metric AE snapshot_${PRINTF_NR}.ppm snapshot_${PRINTF_OLD}.ppm /dev/null)
+ PIXEL=$(compare -metric AE snapshot_${PRINTF_NR}.ppm snapshot_${PRINTF_OLD}.ppm /dev/null 2>&1)
if [ $PIXEL -lt 200 ] ; then
set -x
# unless TRIGGER_MODE is empty, matching images means its over
@@ -410,7 +410,8 @@ monitor_system() {
figlet "Installation hangs."
break
else
- # fail next time screenshot matchs
+ # this is only reached once in rescue mode
+ # and the next matching screenshots will cause a failure...
TRIGGER_MODE="already_matched"
# really kick off trigger:
let TRIGGER_NR=NR