Skip to content

Commit

Permalink
[WIP]: Test the difference with cmp first to reduce the number of 'co…
Browse files Browse the repository at this point in the history
…mpare' command calls.
  • Loading branch information
h-sug1no committed Oct 22, 2021
1 parent 9f84f36 commit 0fd60fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/visual_regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ function diff_image() {
return
fi

cmp -s $fileA $fileB && echo $name "0" >$diff.pass && return

cp $fileA $diff-a.png
cp $fileB $diff-b.png

Expand Down

0 comments on commit 0fd60fd

Please sign in to comment.