diff options
-rwxr-xr-x | bin/test_torbrowser-launcher.sh | 9 | ||||
-rw-r--r-- | job-cfg/torbrowser-launcher.yaml | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh index 45915d16..fd324db6 100755 --- a/bin/test_torbrowser-launcher.sh +++ b/bin/test_torbrowser-launcher.sh @@ -38,9 +38,8 @@ first_test() { kill $XPID schroot --end-session -c $SESSION gocr session.pnm - pnmtojpeg session.pnm > session.jpg - mv -v session.jpg $HOME/jobs/$JOB_NAME/ - rm session.pnm + pnmtopng session.pnm > screenshot.png + convert screenshot.png -adaptive-resize 128x96 screenshot-thumb.png echo "session.jpg should be made availble for download" if ! "$DEBUG" ; then set +x ; fi } @@ -51,6 +50,7 @@ first_test() { TMPDIR=$(mktemp -d) # where everything actually happens trap cleanup_all INT TERM EXIT +WORKSPACE=$(pwd) cd $TMPDIR SUITE=$1 @@ -63,6 +63,9 @@ echo "$(date -u) - testing torbrowser-launcher on $SUITE now." # first_test +# publish results +mv screenshot.png screenshot-thumb.png $WORKSPACE/ + cd cleanup_all trap - INT TERM EXIT diff --git a/job-cfg/torbrowser-launcher.yaml b/job-cfg/torbrowser-launcher.yaml index a36de747..3c67e4ed 100644 --- a/job-cfg/torbrowser-launcher.yaml +++ b/job-cfg/torbrowser-launcher.yaml @@ -31,6 +31,8 @@ fail-on-error: 'true' - email: recipients: '{my_recipients}' + wrappers: + - live-screenshot node: '{my_node}' - defaults: |