[Qa-jenkins-scm] [jenkins.debian.net] 01/03: torbrowser tests: delete similar images more aggressivly, but backwards
Holger Levsen
holger at moszumanska.debian.org
Mon Nov 16 23:58:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 554a48495c1efc9dd1b1a5be41f2aeb9acc29707
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Nov 16 22:40:13 2015 +0100
torbrowser tests: delete similar images more aggressivly, but backwards
---
bin/test_torbrowser-launcher.sh | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index 300c250..9938a51 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -41,12 +41,14 @@ cleanup_all() {
cleanup_duplicate_screenshots() {
echo "$(date -u) - removing duplicate screenshots."
- MAXDIFF=250 # pixels
+ MAXDIFF=2500 # pixels
cd $RESULTS
- for i in *.png ; do
- for j in *.png ; do
+ for i in $(ls -r1 *.png | xargs echo) ; do
+ for j in $(ls -r1 *.png | xargs echo) ; do
if [ "$j" = "$i" ] ; then
break
+ elif [ ! -f $j ] || [ ! -f $i ] ; then
+ break
fi
PIXELS=$(compare -metric AE $i $j /dev/null 2>&1 || true)
if [[ "$PIXELS" =~ ^[0-9]+$ ]] && [ $PIXELS -le $MAXDIFF ] ; then
@@ -160,8 +162,8 @@ download_and_launch() {
cleanup_duplicate_screenshots
exit 1
fi
- for i in $(seq 1 20) ; do
- sleep 30
+ for i in $(seq 1 40) ; do
+ sleep 15
STATUS="$(grep '^Download error:' $TBL_LOGFILE || true)"
if [ -n "$STATUS" ] ; then
echo "'$(date -u) - $STATUS'" | tee | xargs schroot --run-session -c $SESSION --preserve-environment -- notify-send -u critical
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list