summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-15 15:13:20 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-15 15:13:20 +0100
commit4d624ea87498f1e34c0d7239ab3f9a7f9bd1230f (patch)
tree99b244a19c4fcae1614629ff3f22ffdf51b7bdcd /bin
parent7c679f3c7cea3871045c04415c36e41bd31cd38e (diff)
downloadjenkins.debian.net-4d624ea87498f1e34c0d7239ab3f9a7f9bd1230f.tar.xz
torbrowser: cleanup job output, run tbb-l a second time
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test_torbrowser-launcher.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index 775fb12f..34f1f00f 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -16,7 +16,6 @@ cleanup_all() {
# preserve screenshots
[ ! -f screenshot.png ] || mv screenshot.png $WORKSPACE/
[ ! -f screenshot-thumb.png ] || mv screenshot-thumb.png $WORKSPACE/
- [ ! -f screenshot.png ] || mv screenshot.png $WORKSPACE/
[ ! -f test-torbrowser-$SUITE.mpg ] || mv test-torbrowser-$SUITE.mpg $WORKSPACE/
# delete session if it still exists
schroot --end-session -c tbb-launcher-$SUITE-$(basename $TMPDIR) > /dev/null 2>&1 || true
@@ -45,9 +44,14 @@ first_test() {
XPID=$!
export DISPLAY=":$SCREEN.0"
timeout -k 12m 11m schroot --run-session -c $SESSION --preserve-environment -- torbrowser-launcher https://www.debian.org &
- ffmpeg -f x11grab -i :$SCREEN.0 test-torbrowser-$SUITE.mpg >/dev/null &
+ ffmpeg -f x11grab -i :$SCREEN.0 test-torbrowser-$SUITE.mpg > /dev/null 2>&1 &
FFMPEGPID=$!
- for i in $(seq 1 6) ; do
+ for i in $(seq 1 4) ; do
+ sleep 1m
+ update_screenshot
+ done
+ timeout -k 12m 11m schroot --run-session -c $SESSION --preserve-environment -- torbrowser-launcher https://www.debian.org &
+ for i in $(seq 1 4) ; do
sleep 1m
update_screenshot
done
@@ -71,9 +75,6 @@ first_test # test package from the archive
# then build package and test it (probably via triggering another job)
# not sure how to test updates. maybe just run old install?
-# publish results
-mv screenshot.png screenshot-thumb.png $WORKSPACE/
-
cd
cleanup_all
trap - INT TERM EXIT