]> git.openstreetmap.org Git - chef.git/commitdiff
Record journal contents when a test fails
authorTom Hughes <tom@compton.nu>
Thu, 9 Feb 2023 22:19:34 +0000 (22:19 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 10 Feb 2023 15:16:02 +0000 (15:16 +0000)
.github/workflows/test-kitchen.yml

index e1ddf7221adbda1f03ebbf97fd3a10cd62dc5314..a962a5e8bbe9b7f12953dbe380353b326647c69b 100644 (file)
@@ -137,3 +137,6 @@ jobs:
         bundler-cache: true
     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}
+    - name: Gather journal output
+      run: bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c journalctl --since=yesterday
+      if: ${{ failure() }}