summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-16 03:34:26 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-16 03:34:26 +0100
commitcf28d815568a95d49c050e46957a49c67b29eb6e (patch)
tree34cd8b6049c4fc9da2ea530785dd724591066035 /bin
parent4e1e698ef2a1e6f233cb7cd192e34c5a510003a7 (diff)
downloadjenkins.debian.net-cf28d815568a95d49c050e46957a49c67b29eb6e.tar.xz
torbrowser tests: fix installation from git
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test_torbrowser-launcher.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index f7113a0d..1b11c28c 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -72,11 +72,14 @@ upgrade_to_experimental_version() {
build_and_upgrade_to_git_version() {
echo
echo "$(date -u ) - building torbrowser-launcher from git, branch $BRANCH…"
- schroot --run-session -c $SESSION --directory $TMPDIR/git -- debuild -b
- DEB=$(cd $TMPDIR/git ; ls torbrowser-launcher_*deb)
+ schroot --run-session -c $SESSION --directory $TMPDIR/git -- debuild -b -uc -us
+ DEB=$(cd $TMPDIR ; ls torbrowser-launcher_*deb)
+ CHANGES=$(cd $TMPDIR ; ls torbrowser-launcher_*changes)
echo "$(date -u ) - installing $DEB…"
- schroot --run-session -c $SESSION --directory $TMPDIR/git -u root -- dpkg -i $DEB
+ schroot --run-session -c $SESSION --directory $TMPDIR -u root -- dpkg -i $DEB
rm $TMPDIR/git -r
+ cat $TMPDIR/$CHANGES
+ schroot --run-session -c $SESSION --directory $TMPDIR -- dcmd rm $CHANGES
}
download_and_launch() {
@@ -115,8 +118,8 @@ download_and_launch() {
sleep 1
update_screenshot
xvkbd -text "\r" > /dev/null 2>&1
- for i in $(seq 1 60) ; do
- sleep 10
+ for i in $(seq 1 20) ; do
+ sleep 30
update_screenshot
# this directory only exist once torbrower has been successfully installed
STATUS="$(schroot --run-session -c $SESSION -- [ ! -d $HOME/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser ] || echo '$(date -u ) - torbrowser downloaded and installed.')"