lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 54cd54b 2/3: Don't show test-suite.log in CI


From: Vadim Zeitlin
Subject: [lmi-commits] [lmi] master 54cd54b 2/3: Don't show test-suite.log in CI script if it doesn't exist
Date: Mon, 19 Apr 2021 08:48:36 -0400 (EDT)

branch: master
commit 54cd54b6f69c17d0353fd9fb713d2350a3b1b1b8
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Vadim Zeitlin <vadim@tt-solutions.com>

    Don't show test-suite.log in CI script if it doesn't exist
    
    This file won't exist if building tests, and not just running them,
    failed, so don't try dumping it in this case.
---
 .github/workflows/ci.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1c48c5b..d77fea7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -284,10 +284,12 @@ jobs:
           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 '-----------------------------------------------------------'
+            if [ -f ${lmi_build_dir}/test-suite.log ]; then
+                echo '*** Tests failed, contents of test-suite.log follows: 
***'
+                echo 
'-----------------------------------------------------------'
+                cat ${lmi_build_dir}/test-suite.log
+                echo 
'-----------------------------------------------------------'
+            fi
             exit $err
           fi
 



reply via email to

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