lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master d5728f4 19/30: Show the test suite log if run


From: Greg Chicares
Subject: [lmi-commits] [lmi] master d5728f4 19/30: Show the test suite log if running tests failed in the CI build
Date: Wed, 24 Mar 2021 15:31:10 -0400 (EDT)

branch: master
commit d5728f46acf15ea042dc206a338394ff01be458f
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Show the test suite log if running tests failed in the CI build
    
    This will be useful for diagnosing the errors.
---
 .github/workflows/ci.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 684fa17..073d795 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -274,7 +274,15 @@ jobs:
             types.xsd \
             /opt/lmi/data
 
-          make $coefficiency -C ${lmi_build_dir} check
+          make $coefficiency -C ${lmi_build_dir} check || err=$?
+
+          if [ -n "$err" ]; then
+            echo '*** Tests failed, contents of test-suite.log follows: ***'
+            echo '-----------------------------------------------------------'
+            cat ${lmi_build_dir}/test-suite.log
+            echo '-----------------------------------------------------------'
+            exit $err
+          fi
 
       - name: Run unit tests
         if: matrix.autotools != true



reply via email to

[Prev in Thread] Current Thread [Next in Thread]