[travis check new boards] Reduce code logic to exit with failure

This commit is contained in:
C47D 2019-07-19 16:54:42 -05:00
parent fc1594104b
commit 22c265b170
1 changed files with 1 additions and 7 deletions

View File

@ -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)