summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-14 18:19:04 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-14 18:19:04 +0100
commitfefac2da0af36904d34af5a2fe9f73aa692e668e (patch)
treefe8ae722cde8fa909f3ad1563e2e84166d9930f1
parentbd826f9e78b4d00fd436c7eac01d7f1c7764399b (diff)
downloadjenkins.debian.net-fefac2da0af36904d34af5a2fe9f73aa692e668e.tar.xz
preserve screenshots
-rwxr-xr-xbin/test_torbrowser-launcher.sh9
-rw-r--r--job-cfg/torbrowser-launcher.yaml2
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: