]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
[gha] Add a test log when the tests fail (#3971)
authorEmma Foley <elfiesmelfie@users.noreply.github.com>
Tue, 15 Feb 2022 11:41:38 +0000 (11:41 +0000)
committerMatthias Runge <mrunge@matthias-runge.de>
Wed, 1 Feb 2023 08:07:59 +0000 (09:07 +0100)
* [ci][gha] Add a test log when the tests fail

* [ci][cirrus] Update CI to provide test logs on failure

Co-authored-by: Matthias Runge <mrunge@redhat.com>
.cirrus.yml
.github/workflows/build.yml

index fb2ef6022e8dab9f03f4567d1986d1ad5cca32c0..1871931972ec71222b8602580f24caf869eaa5cb 100644 (file)
@@ -178,6 +178,9 @@ non_standard_toolchains_task:
         - make -j2 -sk
       tests_script:
         - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check
+      on_failure:
+        debug_script: cat test-suite.log || true
+
 
     # build against libstatgrab, should always pass
     - env:
@@ -243,6 +246,8 @@ non_standard_toolchains_task:
         - make -j2 -sk
       tests_script:
         - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check
+      on_failure:
+        debug_script: cat test-suite.log || true
 
 ###
 # Build using a range of compilers, available in debian/unstable. NB: might
index cf6d0baadee326071b716bab181a13d184fb75c3..f7430769f0e87a5294be71ecd3961853d4b8789f 100644 (file)
@@ -55,6 +55,9 @@ jobs:
     - name: make check
       continue-on-error: true
       run: make check
+    - name: Dump test logs
+      run: |
+          cat ./test-suite.log || true
     - name: install bzip2
       continue-on-error: true
       run: |
@@ -104,6 +107,9 @@ jobs:
       # Make check is failing on a few newer distros, temporarily mark it as optional until that is resolved 
       continue-on-error: true
       run: make check
+    - name: Dump test logs
+      run: |
+          cat ./test-suite.log || true
     - name: install bzip2
       continue-on-error: true
       run: |