Skip to content

Commit

Permalink
Ensure that the tests were executed
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti committed Oct 2, 2024
1 parent 41fb730 commit 89d20cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/chef-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ jobs:
- name: kitchen test ${{ matrix.SUITE }}-${{ matrix.DISTRO }}
run: |
kitchen test ${{ matrix.SUITE }}-${{ matrix.DISTRO }}
# For some reason, kitchen returns 0 here even if there are test failures, so check the log instead.
grep -q "No tests executed." ./kitchen.log && exit 1
grep -q "0 failures" ./kitchen.log || exit 1
shell: bash
env:
KITCHEN_YAML: kitchen.windows.yml
Expand Down

0 comments on commit 89d20cd

Please sign in to comment.