summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-15 17:15:28 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-15 17:15:28 +0100
commite6a976ee9bbfec6e8eaeb0af97296a3e7f10b4e9 (patch)
tree7f89304f83764e9468113c14b85e2ace922da21b /bin
parent58a68190e6261b0c6b731461178fa6c44f5616d0 (diff)
downloadjenkins.debian.net-e6a976ee9bbfec6e8eaeb0af97296a3e7f10b4e9.tar.xz
torbrowser tests: start dbus
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test_torbrowser-launcher.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index 283ac355..b329f57e 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -17,7 +17,8 @@ cleanup_all() {
[ ! -f screenshot.png ] || mv screenshot.png $RESULTS/
[ ! -f screenshot-thumb.png ] || mv screenshot-thumb.png $RESULTS/
[ ! -f test-torbrowser-$SUITE.mpg ] || mv test-torbrowser-$SUITE.mpg $RESULTS/
- # delete session if it still exists
+ # shutdown and end session if it still exists
+ schroot --run-session -c $SESSION --directory /tmp -u root -- service dbus stop || true
schroot --end-session -c tbb-launcher-$SUITE-$(basename $TMPDIR) > /dev/null 2>&1 || true
# delete main work dir
cd
@@ -38,10 +39,12 @@ update_screenshot() {
}
first_test() {
+ echo
local SESSION="tbb-launcher-$SUITE-$(basename $TMPDIR)"
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
+ schroot --run-session -c $SESSION --directory /tmp -u root -- service dbus start
SCREEN=77
Xvfb -ac -br -screen 0 1024x768x16 :$SCREEN &
XPID=$!
@@ -61,8 +64,10 @@ first_test() {
sleep 15
update_screenshot
done
+ schroot --run-session -c $SESSION --directory /tmp -u root -- service dbus stop
schroot --end-session -c $SESSION
kill $XPID $FFMPEGPID || true
+ echo
}
#