diff options
author | David Robillard <d@drobilla.net> | 2018-11-11 12:14:05 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-11 12:26:54 +0100 |
commit | ba99a2957bd2567d4c1c626c8710f32295962c3e (patch) | |
tree | 4c0ab5a466c512022f61296bca8abb920091fc44 /waflib/extras | |
parent | f17cced47791d6000a76b3094f4ea68cecf0e4d9 (diff) | |
download | serd-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/extras')
-rw-r--r-- | waflib/extras/autowaf.py | 1 |
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) |