aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-07-29 18:57:01 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-07-29 18:57:01 +0000
commitadc032e7d82fb5448d7971477d30743f870588af (patch)
treebb52e870733481283ee5c9da850d0cf1bfc8d0d7
parent248c2b9bf59e937eb7fe66c2727dc0bf4db6ab4c (diff)
Return an error code when extra files are found in filecheck:
-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