aboutsummaryrefslogtreecommitdiffstats
path: root/waflib
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-11 12:14:05 +0100
committerDavid Robillard <d@drobilla.net>2018-11-11 12:26:54 +0100
commitba99a2957bd2567d4c1c626c8710f32295962c3e (patch)
tree4c0ab5a466c512022f61296bca8abb920091fc44 /waflib
parentf17cced47791d6000a76b3094f4ea68cecf0e4d9 (diff)
downloadserd-ba99a2957bd2567d4c1c626c8710f32295962c3e.tar.gz
serd-ba99a2957bd2567d4c1c626c8710f32295962c3e.tar.bz2
serd-ba99a2957bd2567d4c1c626c8710f32295962c3e.zip
Make waf exit with non-zero status when test suite fails
Diffstat (limited to 'waflib')
-rw-r--r--waflib/extras/autowaf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/waflib/extras/autowaf.py b/waflib/extras/autowaf.py
index c49bee7e..13526eb9 100644
--- a/waflib/extras/autowaf.py
+++ b/waflib/extras/autowaf.py
@@ -818,6 +818,7 @@ def post_test(ctx, appname, dirs=['src'], remove=['*boost*', 'c++*']):
Logs.pprint('GREEN', '[ PASSED ] %d tests' % passed_tests)
if failed_tests > 0:
Logs.pprint('RED', '[ FAILED ] %d tests' % failed_tests)
+ sys.exit(1)
Logs.pprint('', '')
top_level = (len(ctx.stack_path) > 1)