[Qa-jenkins-scm] [jenkins.debian.net] 02/03: torbrowser tests: refactor, make final status thumbnails readable

Holger Levsen holger at moszumanska.debian.org
Thu Nov 19 15:41:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 7b20640e2246b85f00131311bab8be38f2df6e46
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Nov 19 14:39:54 2015 +0100

    torbrowser tests: refactor, make final status thumbnails readable
---
 TODO                            |  4 ++++
 bin/test_torbrowser-launcher.sh | 25 +++++++++++--------------
 2 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/TODO b/TODO
index d1d899c..19ea5e5 100644
--- a/TODO
+++ b/TODO
@@ -414,10 +414,14 @@ The following ideas should really only be implemented for the new 'lvc*' tests..
 
 * fix "schroot session cleanup loop" in _common.sh to ignore other schroots
 * build daily from upstream master against sid no matter if there where commits
+* test tbl in German
+* test tbl on i386
 * test alpha releases
 ** '~/.config/torbrowser/settings' file and edit the latest_version setting
 ** get version from '~/.cache/torbrowser/download/RecommendedTBBVersions'
 ** (warning: on update checks these files are written again…)
+* fix broken screenshot while job is running via apache redirect
+* once tbl is removed from experimental, make sure the job does nothing but detect that and exits quickly+successfully.
 * notifications should go somewhere public, after a while of testing.
 * debug why iceweasel is needed to be installed… and ca-certificates too.
 * run this in qemu and enable apparmor too? -> create new tests for apparmor first :)
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index e3bcf5c..605422c 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -304,27 +304,24 @@ download_and_launch() {
 		fi
 	done
 	if [ -n "$BONUS_LEVEL_1" ] && [ -n "$BONUS_LEVEL_2" ] ; then
-		BONUS_MSG="Very well done."
-		BONUS_COLORS="-bg green -fg black"
+		STATUS_MSG="Very well done."
+		STATUS_COLORS="-bg green -fg black"
 	elif [ -n "$BONUS_LEVEL_1" ] || [ -n "$BONUS_LEVEL_2" ] ; then
-		BONUS_MSG="Well done."
-		BONUS_COLORS="-bg lightgreen -fg black"
+		STATUS_MSG="Well done."
+		STATUS_COLORS="-bg lightgreen -fg black"
 	else
-		BONUS_MSG=""
-		BONUS_COLORS=""
+		STATUS_MSG=""
+		STATUS_COLORS=""
 	fi
-	# sleep is added here, so the xterms come up in stable order
-	schroot --run-session -c $SESSION --preserve-environment -- xterm $BONUS_COLORS -fs 64 -hold -T '$(date +'%a %d %b')' -e "figlet -c -f banner '$(date +'%a %d %b')'" 2>/dev/null || true &
+	# sleep is added here, so xterm + notification come up nicely
+	schroot --run-session -c $SESSION --preserve-environment -- xterm -geometry 1024x230+0+520 $STATUS_COLORS -fa 'DejaVuSansMono' -fs 18 -hold -T '$(date +'%a %d %b')' -e "echo ; figlet -c -f banner -w 68 '$(date +'%a %d %b')'" 2>/dev/null || true &
 	sleep 1
-	if [ -n "$BONUS_MSG" ] ; then
-		schroot --run-session -c $SESSION --preserve-environment -- xterm $BONUS_COLORS -fs 48 -hold -T "$BONUS_MSG" -e "figlet -c -f banner '$BONUS_MSG'" 2>/dev/null || true &
-	fi
-	sleep 1
-	echo "'$(date -u) - torbrowser tests end. $BONUS_MSG'" | tee | xargs schroot --run-session -c $SESSION --preserve-environment -- notify-send
+	echo "'$(date -u) - torbrowser tests end. $STATUS_MSG'" | tee | xargs schroot --run-session -c $SESSION --preserve-environment -- notify-send
+	sleep 0.5
 	update_screenshot
 	echo "$(date) - telling awesome to quit."
 	echo 'awesome.quit()' | schroot --run-session -c $SESSION --preserve-environment -- awesome-client
-	sleep 1
+	sleep 0.5
 	schroot --run-session -c $SESSION --directory /tmp -u root -- service dbus stop
 	sleep 1
 	echo "$(date -u ) - killing Xfvb and ffmpeg."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list