test: Fix check-ref-missing

ce3806510f changed the format of
Makefile.refs, breaking the check-ref-missing target.

Ignoring any line not containing a .png file fixes check-ref-missing
and makes it more robust.
This commit is contained in:
Andrea Canciani 2011-06-25 14:35:38 +02:00
parent ce3806510f
commit a6d4d840d3

View file

@ -450,7 +450,7 @@ check-ref-missing:
@cd "$(srcdir)"; \
LANG=C; \
ret=true; \
tail -n+2 Makefile.refs | sed 's/\\$$//' | sed 's/^\t//' | sed 's/ $$//' > ref.list; \
grep '\.png \\$$' Makefile.refs | sed 's/ \\$$//' | tr -d '\t' > ref.list; \
if ! (find . -name '*.ref.png' ; find . -name '*.xfail.png' ; find . -name '*.new.png' ) \
| cut -d/ -f2- | sort | diff -u ref.list - ; then \
echo "*** Error: Sanity check failed"; \