From: Emma Foley Date: Tue, 15 Feb 2022 11:41:38 +0000 (+0000) Subject: [gha] Add a test log when the tests fail (#3971) X-Git-Tag: 6.0.0-rc0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4201659ae96a73479ecf026140cb3cc266914060;p=thirdparty%2Fcollectd.git [gha] Add a test log when the tests fail (#3971) * [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 --- diff --git a/.cirrus.yml b/.cirrus.yml index fb2ef6022..187193197 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf6d0baad..f7430769f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: |