From ae41bb369f23169a79c8b4164f2eebb46b1771fb Mon Sep 17 00:00:00 2001 From: C47D Date: Fri, 19 Jul 2019 12:36:13 -0500 Subject: [PATCH] [travis new boards check] sort both lists of boards --- tools/travis_new_boards_check.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/travis_new_boards_check.py b/tools/travis_new_boards_check.py index 0d6d4ebf92..389c2a2376 100644 --- a/tools/travis_new_boards_check.py +++ b/tools/travis_new_boards_check.py @@ -11,6 +11,8 @@ boards_info_json = build_board_info.get_board_mapping() # Get all the boards out of the json format info_boards = boards_info_json.keys() +# Turn the dict_keys into a list +info_boards = list(info_boards) # We need to know the path of the .travis.yml file base_path = os.path.dirname(__file__) @@ -38,4 +40,6 @@ with open(travis_path, 'r') as travis: else: pass -# TODO (Carlos) Comparing boards listed in TRAVIS_BOARDS and boards got from get_board_mapping +# All the travis_boards elements must be on info_boards +info_boards.sort() +travis_boards.sort()