From: Aleksander Mistewicz Date: Wed, 5 Jul 2017 09:27:49 +0000 (+0200) Subject: Fix screenshot comparison X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbce57bb513746d49ef5d3c41e80a3bc4e525f15;p=tools%2Ftestlab%2Fmajor.git Fix screenshot comparison Change-Id: I748155905434a53aefd89a02596be8618eba5449 --- diff --git a/tsp/jobs/publish.sh b/tsp/jobs/publish.sh index e6f8a99..96ed6fa 100755 --- a/tsp/jobs/publish.sh +++ b/tsp/jobs/publish.sh @@ -176,13 +176,13 @@ SCREENSHOT_TAG="Fail" if [ -n "$SCREENSHOT_DIFF" ] then - if [ "$SCREENSHOT_DIFF" -gt 0 ] + if [ "$SCREENSHOT_DIFF" -eq 0 ] then + SCREENSHOT_TAG="OK" + else echo "Screenshots are different, overwrite AVOCADO_TAG" SCREENSHOT_TAG="Unclear" OVERALL_TAG="Unclear" - else - SCREENSHOT_TAG="OK" fi fi