Ensure we cleanup the tmp dir
Even if the tests fails.
This commit is contained in:
parent
84eb370298
commit
5db54b25a2
12
Makefile.am
12
Makefile.am
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user