Commit 7b20640e authored by Holger Levsen's avatar Holger Levsen
Browse files

torbrowser tests: refactor, make final status thumbnails readable

parent c7cb2198
...@@ -414,10 +414,14 @@ The following ideas should really only be implemented for the new 'lvc*' tests.. ...@@ -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 * 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 * build daily from upstream master against sid no matter if there where commits
* test tbl in German
* test tbl on i386
* test alpha releases * test alpha releases
** '~/.config/torbrowser/settings' file and edit the latest_version setting ** '~/.config/torbrowser/settings' file and edit the latest_version setting
** get version from '~/.cache/torbrowser/download/RecommendedTBBVersions' ** get version from '~/.cache/torbrowser/download/RecommendedTBBVersions'
** (warning: on update checks these files are written again…) ** (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. * notifications should go somewhere public, after a while of testing.
* debug why iceweasel is needed to be installed… and ca-certificates too. * 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 :) * run this in qemu and enable apparmor too? -> create new tests for apparmor first :)
......
...@@ -304,27 +304,24 @@ download_and_launch() { ...@@ -304,27 +304,24 @@ download_and_launch() {
fi fi
done done
if [ -n "$BONUS_LEVEL_1" ] && [ -n "$BONUS_LEVEL_2" ] ; then if [ -n "$BONUS_LEVEL_1" ] && [ -n "$BONUS_LEVEL_2" ] ; then
BONUS_MSG="Very well done." STATUS_MSG="Very well done."
BONUS_COLORS="-bg green -fg black" STATUS_COLORS="-bg green -fg black"
elif [ -n "$BONUS_LEVEL_1" ] || [ -n "$BONUS_LEVEL_2" ] ; then elif [ -n "$BONUS_LEVEL_1" ] || [ -n "$BONUS_LEVEL_2" ] ; then
BONUS_MSG="Well done." STATUS_MSG="Well done."
BONUS_COLORS="-bg lightgreen -fg black" STATUS_COLORS="-bg lightgreen -fg black"
else else
BONUS_MSG="" STATUS_MSG=""
BONUS_COLORS="" STATUS_COLORS=""
fi fi
# sleep is added here, so the xterms come up in stable order # sleep is added here, so xterm + notification come up nicely
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 & 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 sleep 1
if [ -n "$BONUS_MSG" ] ; then echo "'$(date -u) - torbrowser tests end. $STATUS_MSG'" | tee | xargs schroot --run-session -c $SESSION --preserve-environment -- notify-send
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 & sleep 0.5
fi
sleep 1
echo "'$(date -u) - torbrowser tests end. $BONUS_MSG'" | tee | xargs schroot --run-session -c $SESSION --preserve-environment -- notify-send
update_screenshot update_screenshot
echo "$(date) - telling awesome to quit." echo "$(date) - telling awesome to quit."
echo 'awesome.quit()' | schroot --run-session -c $SESSION --preserve-environment -- awesome-client 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 schroot --run-session -c $SESSION --directory /tmp -u root -- service dbus stop
sleep 1 sleep 1
echo "$(date -u ) - killing Xfvb and ffmpeg." echo "$(date -u ) - killing Xfvb and ffmpeg."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment