diff options
| author | C47D <carlos.santiago.diaz@gmail.com> | 2019-07-19 16:54:42 -0500 |
|---|---|---|
| committer | C47D <carlos.santiago.diaz@gmail.com> | 2019-07-19 16:54:42 -0500 |
| commit | 22c265b170ec57fc78e9b2eb01ed2120e0116e95 (patch) | |
| tree | 5b6cc2d9b44c1781edffca6425107596ef9c182a | |
| parent | fc1594104b4c09ab7576da2f87a98bb76f0fe6d2 (diff) | |
[travis check new boards] Reduce code logic to exit with failure
| -rw-r--r-- | tools/travis_new_boards_check.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/travis_new_boards_check.py b/tools/travis_new_boards_check.py index 568df50ae..f4492830d 100644 --- a/tools/travis_new_boards_check.py +++ b/tools/travis_new_boards_check.py @@ -45,16 +45,10 @@ with open(travis_path, 'r') as travis: info_boards.sort() travis_boards.sort() -exit_status = 0 - missing_boards = list(set(info_boards) - set(travis_boards)) if len(missing_boards) is not 0: - exit_status = 1 - -if exit_status is 1: print('Boards missing in TRAVIS_BOARDS:') for board in missing_boards: print(board) - -sys.exit(exit_status) + sys.exit(1) |
