summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-05-21 15:17:40 +0200
committerHolger Levsen <holger@layer-acht.org>2016-05-21 15:17:40 +0200
commite0e5bb3fd2775763dfd2806536ce55e899c08f1c (patch)
treef29aea423f1ffc1f6e87a429bbc8c78fa2027e46 /bin
parentcb591e89bdb00538959d61bffe5caa967af4f8a5 (diff)
downloadjenkins.debian.net-e0e5bb3fd2775763dfd2806536ce55e899c08f1c.tar.xz
lvc: also save thumbnail of last screenshot and be more verbose
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lvc.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/lvc.sh b/bin/lvc.sh
index 06d9cd84..563fa769 100755
--- a/bin/lvc.sh
+++ b/bin/lvc.sh
@@ -110,9 +110,11 @@ echo "Debug log available at runtime at https://jenkins.debian.net/view/lvc/job/
/srv/jenkins/cucumber/bin/run_test_suite --vnc-server-only --capture-all --iso $IMAGE --tmpdir $PWD --old-iso $IMAGE -- --format pretty --format pretty_debug --out $PWD/results/debug.log /srv/jenkins/cucumber/features/step_definitions /srv/jenkins/cucumber/features/support "${@}"
+echo "Trying to preserve last screenshot…"
LAST_SCREENSHOT=$(ls -t1 results/*.png | head -1)
if [ -e "$LAST_SCREENSHOT" ] ; then
cp $LAST_SCREENSHOT $WORKSPACE/screenshot.png
+ convert $WORKSPACE/screenshot.png -adaptive-resize 128x96 $WORKSPACE/screenshot-thumb.png
fi
cleanup_all