diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-12-02 03:43:14 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-12-02 03:43:14 +0100 |
commit | 3153d6430d6901682f32a83502298736b1a92372 (patch) | |
tree | e152dd4456df5df0799ed1cf4634e95d4c173fa7 | |
parent | f953cb354fbf4b889ba15fe541f1d0d49b4d54e4 (diff) | |
download | jenkins.debian.net-3153d6430d6901682f32a83502298736b1a92372.tar.xz |
fixup: implement basics for cd tests
-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 |