summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-14 17:26:20 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-14 17:26:20 +0100
commitd9655f3bc885625df43a7378615c6bfad6b9ef99 (patch)
tree77e4a5b0c98c757f5bec808d98bea148742b455e /bin
parentcbe53dd555d142ff81b4c47ba4f5325cc9c1456b (diff)
downloadjenkins.debian.net-d9655f3bc885625df43a7378615c6bfad6b9ef99.tar.xz
try harder to keep screenshot
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test_torbrowser-launcher.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index 636dea20..a2cf299a 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -27,16 +27,19 @@ first_test() {
schroot --begin-session --session-name=$SESSION -c jenkins-torbrowser-launcher-$SUITE
schroot --run-session -c $SESSION --directory /tmp -u root -- mkdir $HOME
schroot --run-session -c $SESSION --directory /tmp -u root -- chown jenkins:jenkins $HOME
- Xvfb :77 -screen 0 1024x768x16 &
- XPID=$?
- export DISPLAY=":77"
- timeout -k 5m 4m schroot --run-session -c $SESSION --preserve-environment -- torbrowser-launcher https://www.debian.org &
- sleep 2m
- xwd -root -silent -display :77.0 | xwdtopnm > session.pnm
+ SCREEN=77
+ Xvfb -ac -br -screen 1024x768x16 :$SCREEN.0 &
+ XPID=$!
+ export DISPLAY=":$SCREEN.0"
+ timeout -k 12m 11m schroot --run-session -c $SESSION --preserve-environment -- torbrowser-launcher https://www.debian.org &
+ sleep 5m
+ xwd -root -silent -display :$SCREEN.0 | xwdtopnm > session.pnm
+ sleep 5m
kill $XPID
schroot --end-session -c $SESSION
gocr session.pnm
pnmtojpeg session.pnm > session.jpg
+ mv -v session.jpg $HOME/jobs/$JOB_NAME/
rm session.pnm
echo "session.jpg should be made availble for download"
if ! "$DEBUG" ; then set +x ; fi