[Qa-jenkins-scm] [jenkins.debian.net] 01/01: refactor
Holger Levsen
holger at moszumanska.debian.org
Sat Nov 14 17:36:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit b792a84a1443eeae327f9851720d81d5a82bd83a
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat Nov 14 18:36:36 2015 +0100
refactor
---
bin/test_torbrowser-launcher.sh | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index 9fb0727..4768308 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -22,6 +22,13 @@ cleanup_all() {
echo "$(date -u) - $TMPDIR deleted. Cleanup done."
}
+update_screenshot() {
+ xwd -root -silent -display :$SCREEN.0 | xwdtopnm > screenshot.pnm
+ pnmtopng screenshot.pnm > screenshot.png
+ convert screenshot.png -adaptive-resize 128x96 screenshot-thumb.png
+ mv screenshot.png screenshot-thumb.png $WORKSPACE/ || true
+}
+
first_test() {
set -x
local SESSION="tbb-launcher-$SUITE-$(basename $TMPDIR)"
@@ -33,13 +40,12 @@ first_test() {
XPID=$!
export DISPLAY=":$SCREEN.0"
timeout -k 12m 11m schroot --run-session -c $SESSION --preserve-environment -- torbrowser-launcher https://www.debian.org &
- sleep 2m
- xwd -root -silent -display :$SCREEN.0 | xwdtopnm > screenshot.pnm
- sleep 2m
+ for i in $(seq 1 6) ; do
+ sleep 1m
+ update_screenshot
+ done
kill $XPID
- schroot --end-screenshot -c $SESSION
- pnmtopng screenshot.pnm > screenshot.png
- convert screenshot.png -adaptive-resize 128x96 screenshot-thumb.png
+ schroot --end-session -c $SESSION
if ! "$DEBUG" ; then set +x ; fi
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list