Ensure we cleanup the tmp dir

Even if the tests fails.
This commit is contained in:
Daniel Narvaez 2013-05-06 14:22:01 +02:00
parent 84eb370298
commit 5db54b25a2

View File

@ -20,8 +20,10 @@ check: test
pyflakes $(top_srcdir)
test:
cd $(top_srcdir)/tests && \
mkdir -p $(TESTS_TMPDIR) && \
TMPDIR=$(TESTS_TMPDIR) PYTHONPATH=$(TESTS_PYTHONPATH) \
python -m unittest discover && \
rm -rf $(TESTS_TMPDIR)
mkdir -p $(TESTS_TMPDIR)
cd $(top_srcdir)/tests; \
TMPDIR=$(TESTS_TMPDIR) PYTHONPATH=$(TESTS_PYTHONPATH) \
python -m unittest discover; \
status=$$?; \
rm -rf $(TESTS_TMPDIR); \
exit $$status