From 6183dbd0ceefdbff42d30e6691fa9948a695e9af Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 27 Sep 2019 00:15:43 +0700 Subject: add -Wextra for more warnings to example non-stack warning (probably mcu driver) should be suppressed in the board.mk --- tools/build_all.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/build_all.py b/tools/build_all.py index e327da221..b20785049 100644 --- a/tools/build_all.py +++ b/tools/build_all.py @@ -46,13 +46,13 @@ for example in all_examples: build_result = build_example(example, board) build_duration = time.monotonic() - start_time - if build_result.returncode != 0: + if build_result.returncode == 0: + success = "\033[32msucceeded\033[0m" + success_count += 1 + else: exit_status = build_result.returncode success = "\033[31mfailed\033[0m " fail_count += 1 - else: - success = "\033[32msucceeded\033[0m" - success_count += 1 if travis: print('travis_fold:start:build-{}-{}\\r'.format(example, board)) -- cgit v1.3.1