From ba99a2957bd2567d4c1c626c8710f32295962c3e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Nov 2018 12:14:05 +0100 Subject: Make waf exit with non-zero status when test suite fails --- waflib/extras/autowaf.py | 1 + 1 file changed, 1 insertion(+) (limited to 'waflib/extras') 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) -- cgit v1.2.1