summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-09-08 15:52:27 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-09-09 09:23:19 +0100
commit3cbc930cb85b742f6e595336c372e43807d4fd93 (patch)
treec151c916bca0e63e4e3a17378c87bf6bdf8ce6b7 /tests
parent0a0f05efa5be66ec72ac28d7195b3487e6e9bfcd (diff)
tests: print "Core dump exists" in red, like Gabble
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/Makefile.am17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/twisted/Makefile.am b/tests/twisted/Makefile.am
index 6548dff..f33c1a5 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -37,13 +37,20 @@ check-twisted:
$(MAKE) -C tools
rm -f tools/core
rm -f tools/idle-testing.log
- sh $(srcdir)/tools/with-session-bus.sh --config-file=tools/tmp-session-bus.conf -- $(MAKE) check-TESTS \
+ failed=0; \
+ sh $(srcdir)/tools/with-session-bus.sh \
+ --config-file=tools/tmp-session-bus.conf \
+ -- $(MAKE) check-TESTS \
TESTS="$(TWISTED_TESTS)" \
- TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) $(TEST_PYTHON)"
- @if test -e tools/core; then\
- echo "Core dump exists: tools/core";\
+ TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) $(TEST_PYTHON) -u" || \
+ failed=1; \
+ if test -e tools/core; then\
+ echo -e "\033[0;31;1mCore dump exists: tools/core\033[0m";\
exit 1;\
- fi
+ fi; \
+ if test $$failed = 1; then\
+ exit 1;\
+ fi;
endif