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

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

 



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

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux