From 40a3837c1ff71ef3dd4fcd3203d0b5e2ed562692 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 3 Dec 2012 13:55:40 +0100 Subject: more debug --- bin/cd_tester.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bin/cd_tester.sh') diff --git a/bin/cd_tester.sh b/bin/cd_tester.sh index 94a1409a..492c9469 100755 --- a/bin/cd_tester.sh +++ b/bin/cd_tester.sh @@ -47,7 +47,7 @@ WORKSPACE=$(pwd) RESULTS=$WORKSPACE/results cleanup_all() { - set -x + set +x cd $RESULTS echo -n "Last screenshot: " ls -t1 *.ppm | head -1 @@ -55,7 +55,6 @@ cleanup_all() { # create video # ffmpeg2theora --videobitrate 700 --no-upscaling snapshot_%06d.ppm --framerate 12 --max_size 800x600 -o cd-test-$NAME.ogv - set +x rm snapshot_??????.ppm set -x # @@ -121,10 +120,15 @@ monitor_installation() { if [ $(($NR % 100)) -eq 0 ] && [ $NR -gt 400 ] ; then # from help let: "Exit Status: If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise." let OLD=NR-400 - if ! diff snapshot_$(printf "%06d" $NR).ppm snapshot_$(printf "%06d" $OLD).ppm ; then + set -x + if ! diff -q snapshot_$(printf "%06d" $NR).ppm snapshot_$(printf "%06d" $OLD).ppm ; then echo Warning: snapshot_$(printf "%06d" $NR).ppm snapshot_$(printf "%06d" $OLD).ppm match, ending installation. + cp snapshot_$(printf "%06d" $NR).ppm snapshot_$(printf "%06d" $NR).ppm.bak + cp snapshot_$(printf "%06d" $OLD).ppm snapshot_$(printf "%06d" $OLD).ppm.bak + ls -la napshot_$(printf "%06d" $NR).ppm snapshot_$(printf "%06d" $OLD).ppm break fi + set +x fi let NR=NR+1 sleep 2 -- cgit v1.2.3-70-g09d2