From e1a241b58750ee3601cf8a282778398e518078e9 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 9 Oct 2014 14:51:00 +0000 Subject: [PATCH] atomar screenshot files --- test/widgets/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/widgets/Makefile b/test/widgets/Makefile index 8a0dbd0..244bc90 100644 --- a/test/widgets/Makefile +++ b/test/widgets/Makefile @@ -16,7 +16,7 @@ all: help clean: rm -f mkws-error.png mkws-error.html - rm -f ${IMAGES}/*.png + rm -f ${IMAGES}/*.png ${IMAGES}/*.png.tmp rm -f ${IMAGES}/index.html distclean: clean @@ -25,7 +25,8 @@ test: check screenshot: file=$$(echo "${PHANTOMJS_URL}" | perl -npe 's,(\W),-,g'); \ - ${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT} + ${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/tmp.$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT}; \ + mv -f ${IMAGES}/tmp.$$file.png ${IMAGES}/$$file.png screenshots: for i in $$(cat url.txt); do \ -- 1.7.10.4