diff --git a/lib/kitchen/verifier/inspec.rb b/lib/kitchen/verifier/inspec.rb index cfc75f8..b118230 100644 --- a/lib/kitchen/verifier/inspec.rb +++ b/lib/kitchen/verifier/inspec.rb @@ -182,8 +182,9 @@ def resolve_config_inspec_tests # @return [Array] array of suite directories or remote urls # @api private def collect_tests - # get local tests and get run list of profiles - (local_suite_files + resolve_config_inspec_tests).compact.uniq + # get run list of profiles or fall back to local tests + return resolve_config_inspec_tests.uniq if resolve_config_inspec_tests + local_suite_files end # Returns a configuration Hash that can be passed to a `Inspec::Runner`.