diff options
| author | hathach <[email protected]> | 2019-09-27 00:15:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-09-27 00:15:43 +0700 |
| commit | 6183dbd0ceefdbff42d30e6691fa9948a695e9af (patch) | |
| tree | ee2660cfb05f002990a16ff69beea96271a09629 /tools | |
| parent | 7ba8e818527eca1c16946ef8f58a0cde807fb3f3 (diff) | |
add -Wextra for more warnings to example
non-stack warning (probably mcu driver) should be suppressed in the
board.mk
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build_all.py | 8 |
1 files changed, 4 insertions, 4 deletions
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)) |
