[libvirt] [jenkins-ci PATCH 6/6] jobs: allow test-suite.log to exist anywhere

Daniel P. Berrangé berrange at redhat.com
Fri May 3 18:02:33 UTC 2019


Don't assume that all projects have a dedicated tests/ subdirectory
for unit tests.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 guests/playbooks/build/jobs/autotools-check-job.yml | 2 +-
 jenkins/jobs/autotools.yaml                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/guests/playbooks/build/jobs/autotools-check-job.yml b/guests/playbooks/build/jobs/autotools-check-job.yml
index bcb6a85..a306902 100644
--- a/guests/playbooks/build/jobs/autotools-check-job.yml
+++ b/guests/playbooks/build/jobs/autotools-check-job.yml
@@ -9,7 +9,7 @@
     cd build
     if ! $MAKE check
     then
-        cat tests/test-suite.log || true
+        find -name test-suite.log -exec cat {} \;
         exit 1
     fi
   when:
diff --git a/jenkins/jobs/autotools.yaml b/jenkins/jobs/autotools.yaml
index f04ec17..72dd72e 100644
--- a/jenkins/jobs/autotools.yaml
+++ b/jenkins/jobs/autotools.yaml
@@ -126,7 +126,7 @@
           cd build
           if ! $MAKE check
           then
-              cat tests/test-suite.log || true
+              find -name test-suite.log -exec cat {} \;
               exit 1
           fi
     publishers:
-- 
2.21.0




More information about the libvir-list mailing list