aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/data/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 81d5080b4..e3312d1f4 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -62,12 +62,15 @@ filecheck:
rm test-place/*~; \
for f in $(EXTRA_DIST); do \
if test -f "$(top_srcdir)/tests/data/$$f"; then \
- rm -f test-place/$$f; \
+ rm -f "test-place/$$f"; \
else \
echo "$$f is listed but missing!"; \
fi \
done; \
echo "Local files not present in EXTRA_DIST:" ; \
ls test-place; \
- rm -rf test-place
+ ! ls test-place | grep . >/dev/null ; \
+ RC=$$? ; \
+ rm -rf test-place ; \
+ exit $$RC