Skip to content

Commit

Permalink
feat(kitchen.yml): prevent suite inclusion if includes: *includes_NONE
Browse files Browse the repository at this point in the history
* Applies to `php-formula` as well
  • Loading branch information
myii committed Sep 7, 2019
1 parent a10e09d commit 326f531
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssf/files/default/kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ verifier:
suites:
{%- for index in range(0, inspec_suites_kitchen | length) %}
{%- set suite = inspec_suites_kitchen[index] %}
{#- Do not include the suite if `includes: *includes_NONE` has been set #}
{%- if not (suite.includes and not suite.includes[0]) %}
- name: {{ suite.name }}
{{- format_includes_excludes(suite, 'excludes') }}
{{- format_includes_excludes(suite, 'includes') }}
Expand Down Expand Up @@ -205,4 +207,5 @@ suites:
{%- set test_suite = suite.name %}
{%- endif %}
- path: {{ inspec_tests_path_prefix }}/{{ test_suite }}
{%- endif %}
{%- endfor %}

0 comments on commit 326f531

Please sign in to comment.