From 065705009828b7c1255797f7d628de1cbedc9bb4 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Fri, 13 Nov 2015 11:48:44 -0600 Subject: [PATCH] Fixes issue with libraries being built out of order --- workspace_tools/test_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workspace_tools/test_api.py b/workspace_tools/test_api.py index 53cf938fa7..6977ef150f 100644 --- a/workspace_tools/test_api.py +++ b/workspace_tools/test_api.py @@ -401,15 +401,15 @@ class SingleTestRunner(object): # First pass through all tests and determine which libraries need to be built - libraries = set() + libraries = [] for test_id in valid_test_map_keys: test = TEST_MAP[test_id] # Detect which lib should be added to test # Some libs have to compiled like RTOS or ETH for lib in LIBRARIES: - if lib['build_dir'] in test.dependencies: - libraries.add(lib['id']) + if lib['build_dir'] in test.dependencies and lib['build_dir'] not in libraries: + libraries.append(lib['id']) build_project_options = ["analyze"] if self.opts_goanna_for_tests else None