We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba050a0 commit 799d64aCopy full SHA for 799d64a
.circleci/orca-build-verify.sh
@@ -84,6 +84,14 @@ function compare()
84
}
85
compare $NODE_QUEUE
86
87
+function delete_perfect_matches()
88
+{
89
+ grep -l -R "all: 0" $DIFF_IMAGES/ | gawk '{match($0, /diff\/([^.]*)/, arr); print arr[1]}' > /tmp/succeeded
90
+ cat /tmp/succeeded | \
91
+ xargs -n1 -I {} rm $DIFF_IMAGES/{}.png $DIFF_IMAGES/{}.txt
92
+}
93
+delete_perfect_matches
94
+
95
CODE=$(grep -R "all: [^0]" $DIFF_IMAGES/ | wc -l)
96
97
# If there are different images, retry
@@ -93,7 +101,9 @@ if [ "$CODE" -ne "0" ]; then
101
cat /tmp/failed
102
generate /tmp/failed
103
compare /tmp/failed
104
+ delete_perfect_matches
105
106
fi
107
98
108
echo "$CODE different images"
99
109
exit $CODE
0 commit comments