From b8dc18fa5cc6e7ea954f0a6d494173f8ccf2d4ff Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 19 Nov 2015 01:12:57 +0100 Subject: torbrowser tests: use xterm+figlet to show date+status in final thumbnail --- bin/test_torbrowser-launcher.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh index a9faee59..6b659a1f 100755 --- a/bin/test_torbrowser-launcher.sh +++ b/bin/test_torbrowser-launcher.sh @@ -293,13 +293,21 @@ download_and_launch() { fi done if [ -n "$BONUS_LEVEL_1" ] && [ -n "$BONUS_LEVEL_2" ] ; then - BONUS_LEVEL=" Very well done." + BONUS_MSG="Very well done." + BONUS_COLORS="-bg green -fg black" elif [ -n "$BONUS_LEVEL_1" ] || [ -n "$BONUS_LEVEL_2" ] ; then - BONUS_LEVEL=" Well done." + BONUS_MSG="Well done." + BONUS_COLORS="-bg lightgreen -fg black" else - BONUS_LEVEL="" + BONUS_MSG="" + BONUS_COLORS="" fi - echo "'$(date -u) - torbrowser tests end.$BONUS_LEVEL'" | tee | xargs schroot --run-session -c $SESSION --preserve-environment -- notify-send + 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 & + 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 update_screenshot echo "$(date) - telling awesome to quit." echo 'awesome.quit()' | schroot --run-session -c $SESSION --preserve-environment -- awesome-client -- cgit v1.2.3-70-g09d2