From 3153d6430d6901682f32a83502298736b1a92372 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 2 Dec 2012 03:43:14 +0100 Subject: fixup: implement basics for cd tests --- bin/cd_tester.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/cd_tester.sh b/bin/cd_tester.sh index 88dd90f8..6b78f834 100755 --- a/bin/cd_tester.sh +++ b/bin/cd_tester.sh @@ -37,6 +37,12 @@ mkdir -p results cd results cleanup_all() { + set -x + # + # create video + # + ffmpeg2theora --videobitrate 700 --no-upscaling snapshot_%06d.ppm --framerate 12 --max_size 800x600 -o video.ogv + rm snapshot_??????.ppm # # kill qemu # @@ -46,11 +52,6 @@ cleanup_all() { # sudo umount $IMAGE_MNT sudo rm $NAME.qcow - # - # create video - # - ffmpeg2theora --videobitrate 700 --no-upscaling snapshot_%06d.ppm --framerate 12 --max_size 800x600 -o video.ogv - rm snapshot_??????.ppm } bootstrap() { @@ -74,7 +75,8 @@ monitor_installation() { sleep 2 echo "Taking screenshots every 2secs now, until the installation is finished or 5h have passed" NR=0 - while [ $NR -lt 9000 ] ; do + while [ $NR -lt 9000 ] ; do + set +x # # break if qemu-system has finished # @@ -86,7 +88,8 @@ monitor_installation() { rm snapshot_$(printf "%06d" $NR).jpg let NR=NR+1 sleep 2 - done + done + set -x } trap cleanup_all INT TERM EXIT -- cgit v1.2.3-70-g09d2