diff options
| author | hathach <[email protected]> | 2019-10-01 16:09:18 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-01 16:09:18 +0700 |
| commit | d3e48da5a1266a88f5f0fdfe28818c8599b09844 (patch) | |
| tree | 156cd459525df4b049a41c6afffc73b1dc75b4a9 /tools | |
| parent | 64467010410a8f08f77061b3f389ff7d71ddca84 (diff) | |
| parent | 6479ee53d5ecaf2b47b59979239ac31868779c05 (diff) | |
Merge pull request #191 from hathach/develop
fix #161 and enable -Wextra for more warnings
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)) |
