187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
# File 'lib/inspec/profile.rb', line 187
def collect_tests(include_list = @controls)
unless @tests_collected
return unless supports_platform?
locked_dependencies.each(&:collect_tests)
tests.each do |path, content|
next if content.nil? || content.empty?
abs_path = source_reader.target.abs_path(path)
@runner_context.load_control_file(content, abs_path, nil)
end
@tests_collected = true
end
filter_controls(@runner_context.all_rules, include_list)
end
|