Fix screenshot comparison 16/181816/1
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Wed, 5 Jul 2017 09:27:49 +0000 (11:27 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Tue, 8 Aug 2017 08:18:56 +0000 (10:18 +0200)
Change-Id: I748155905434a53aefd89a02596be8618eba5449

tsp/jobs/publish.sh

index e6f8a99..96ed6fa 100755 (executable)
@@ -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