summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-18 17:48:56 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-18 17:48:56 +0100
commit2beaeb3852700d15224397c6b97edeb295bb7719 (patch)
treeb6d19aabb3278d99148a4520224a6c32511ae24e /bin
parent46a409eeac0711d080b4c088564eb875c0b9cc38 (diff)
downloadjenkins.debian.net-2beaeb3852700d15224397c6b97edeb295bb7719.tar.xz
torbrowser tests: improve final_state.png handling
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test_torbrowser-launcher.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index 977a898f..379ff059 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -21,7 +21,7 @@ cleanup_all() {
[ ! -f $VIDEO ] || mv $VIDEO $RESULTS/
cd $WORKSPACE
[ ! -f screenshot.png ] || rm screenshot.png
- [ ! -f screenshot-thumb.png ] || mv screenshot-thumb.png $RESULTS/
+ [ ! -f screenshot-thumb.png ] || rm screenshot-thumb.png
[ ! -f screenshot_from_git.png ] || mv screenshot_from_git.png screenshot.png
# shutdown and end session if it still exists
STATUS=$(schroot -l --all-sessions | grep $SESSION || true)
@@ -57,6 +57,8 @@ cleanup_duplicate_screenshots() {
fi
done
done
+ cp $(ls -r1 *.png | head -1) final_state.png
+ convert final_state.png -adaptive-resize 128x96 final_state-thumb.png
}
update_screenshot() {