Skip to content

Commit 5bafda6

Browse files
committed
don't redundantly report assured platforms
1 parent 4fb810b commit 5bafda6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

exe/arduino_ci_remote.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,13 @@ def display_files(pathname)
144144
aux_libraries = Set.new(config.aux_libraries_for_unittest + config.aux_libraries_for_build)
145145
# while collecting the platforms, ensure they're defined
146146
config.platforms_to_unittest.each { |p| all_platforms[p] = assured_platform("unittest", p, config) }
147+
example_platforms = {}
147148
library_examples.each do |path|
148149
ovr_config = config.from_example(path)
149-
ovr_config.platforms_to_build.each { |p| all_platforms[p] = assured_platform("library example", p, config) }
150+
ovr_config.platforms_to_build.each do |p|
151+
# assure the platform if we haven't already
152+
example_platforms[p] = all_platforms[p] = assured_platform("library example", p, config) unless example_platforms.key?(p)
153+
end
150154
aux_libraries.merge(ovr_config.aux_libraries_for_build)
151155
end
152156

0 commit comments

Comments
 (0)