summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-07-13 12:44:50 -0700
committerKeith Packard <keithp@keithp.com>2017-07-13 12:44:50 -0700
commita586f1ca6a7d94e90210ea7a88832a2e5c74cf9b (patch)
tree410376e67f02382b9e7c4b941740093351046e5e
parentd90e013791ccddf5f56232e8b6f8e40ac4fb0b64 (diff)
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 <keithp@keithp.com>
-rw-r--r--test/Makefile.am6
1 files 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