diff options
-rwxr-xr-x | bin/cd_tester.sh | 17 |
1 files changed, 10 insertions, 7 deletions
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 |