From 326f53124d974ec0226b08c1240973fa65b30cc4 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Sat, 7 Sep 2019 22:56:27 +0100 Subject: [PATCH] feat(kitchen.yml): prevent suite inclusion if `includes: *includes_NONE` * Applies to `php-formula` as well --- ssf/files/default/kitchen.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssf/files/default/kitchen.yml b/ssf/files/default/kitchen.yml index 83ad0728..d9e77d6b 100644 --- a/ssf/files/default/kitchen.yml +++ b/ssf/files/default/kitchen.yml @@ -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') }} @@ -205,4 +207,5 @@ suites: {%- set test_suite = suite.name %} {%- endif %} - path: {{ inspec_tests_path_prefix }}/{{ test_suite }} + {%- endif %} {%- endfor %}