diff options
-rwxr-xr-x | bin/test_torbrowser-launcher.sh | 4 |
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() { |