[tor-commits] [stegotorus/master] Delete traces in 'make clean' if we generated them.
zwol at torproject.org
zwol at torproject.org
Fri Jul 20 23:17:08 UTC 2012
commit e5429ffb1badee2547c685c62bef3685b7798c0b
Author: Zack Weinberg <zackw at cmu.edu>
Date: Sat Jul 14 18:42:40 2012 +0200
Delete traces in 'make clean' if we generated them.
---
Makefile.am | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 5416842..ee1d46d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -186,10 +186,15 @@ if INTEGRATION_TESTS
elif [ -e $(srcdir)/traces ]; then \
ln -s $(srcdir)/traces traces; \
else \
- mkdir traces && ./pgen_fake; \
+ mkdir traces && touch traces/.faked && ./pgen_fake; \
fi; \
fi
$(AM_V_at) $(PYTHON) -m unittest discover -s $(srcdir)/src/test -p 'test_*.py' -v
else
@echo !!! Integration tests skipped !!!
endif
+
+if INTEGRATION_TESTS
+clean-local:
+ [ ! -f traces/.faked ] || rm -r traces
+endif
More information about the tor-commits
mailing list