From a586f1ca6a7d94e90210ea7a88832a2e5c74cf9b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 13 Jul 2017 12:44:50 -0700 Subject: test: Make 'set-ref' only update images which have new versions -out images are saved when they differ from the reference, this allows only those new images to be updated. Signed-off-by: Keith Packard --- test/Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 00819fe..b7fe5ca 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -44,6 +44,8 @@ clean-local: set-ref: test-suite.log for ref in $(REFPNG); do \ out=`echo $$ref | sed 's/-ref.png/-out.png/'`; \ - echo cp $$out $$ref; \ - cp $$out $$ref; \ + if [ -f $$out ]; then \ + echo cp $$out $$ref; \ + cp $$out $$ref; \ + fi; \ done -- cgit v1.2.3