diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-11-15 17:35:15 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-11-15 17:35:15 +0100 |
commit | 43e03887200ef545c7873433ad4845183832dc62 (patch) | |
tree | 4d2e1ffb08f56f74ed6be8c8eaea093e845a56d1 /bin | |
parent | f7b10ed74d17531d6a8eb926e9f74d04ac6b0714 (diff) | |
download | jenkins.debian.net-43e03887200ef545c7873433ad4845183832dc62.tar.xz |
torbrowser tests: slow down a bit
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/test_torbrowser-launcher.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh index 622d5b33..100c3280 100755 --- a/bin/test_torbrowser-launcher.sh +++ b/bin/test_torbrowser-launcher.sh @@ -34,7 +34,7 @@ update_screenshot() { pnmtopng screenshot.pnm > screenshot.png convert screenshot.png -adaptive-resize 128x96 screenshot-thumb.png # for publishing - cp screenshot.png $RESULTS/screenshot_$TIMESTAMP.png + cp -v screenshot.png $RESULTS/screenshot_$TIMESTAMP.png # for the live screenshot plugin mv screenshot.png screenshot-thumb.png $WORKSPACE/ } @@ -46,13 +46,17 @@ first_test() { schroot --run-session -c $SESSION --directory /tmp -u root -- mkdir $HOME schroot --run-session -c $SESSION --directory /tmp -u root -- chown jenkins:jenkins $HOME schroot --run-session -c $SESSION --directory /tmp -u root -- service dbus start + sleep 2 SCREEN=77 Xvfb -ac -br -screen 0 1024x768x16 :$SCREEN & XPID=$! + sleep 1 export DISPLAY=":$SCREEN.0" unset http_proxy unset https_proxy timeout -k 12m 11m schroot --run-session -c $SESSION --preserve-environment -- awesome & + sleep 1 + update_screenshot timeout -k 12m 11m schroot --run-session -c $SESSION --preserve-environment -- torbrowser-launcher https://www.debian.org & ffmpeg -f x11grab -i :$SCREEN.0 -s 1024x768 test-torbrowser-${SUITE}_$(date +%Y%m%d%H%M).mpg > /dev/null 2>&1 & FFMPEGPID=$! |