[PATCH jenkins-ci] Make args to 'go test' configurable

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

 



Each module has its own set of tags it may wish to pass to 'go test',
so set it based on an env variable

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 jobs/go.yaml                 | 2 +-
 projects/libvirt-go-xml.yaml | 2 ++
 projects/libvirt-go.yaml     | 2 ++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/jobs/go.yaml b/jobs/go.yaml
index 93b61ca..29a9f51 100644
--- a/jobs/go.yaml
+++ b/jobs/go.yaml
@@ -80,7 +80,7 @@
       - shell: |
           {global_env}
           {local_env}
-          go test -tags api
+          go test $TEST_ARGS
     publishers:
       - email:
           recipients: '{obj:spam}'
diff --git a/projects/libvirt-go-xml.yaml b/projects/libvirt-go-xml.yaml
index 1c42e3d..3083b9f 100644
--- a/projects/libvirt-go-xml.yaml
+++ b/projects/libvirt-go-xml.yaml
@@ -11,6 +11,8 @@
       - libvirt-freebsd-10
       - libvirt-freebsd-11
     title: Libvirt Go XML
+    local_env: |
+      export TEST_ARGS="-tags xmlroundtrip"
     jobs:
       - go-build-job:
           parent_jobs:
diff --git a/projects/libvirt-go.yaml b/projects/libvirt-go.yaml
index faa5265..141c862 100644
--- a/projects/libvirt-go.yaml
+++ b/projects/libvirt-go.yaml
@@ -11,6 +11,8 @@
       - libvirt-freebsd-10
       - libvirt-freebsd-11
     title: Libvirt Go
+    local_env: |
+      export TEST_ARGS="-tags api"
     jobs:
       - go-build-job:
           parent_jobs: 'libvirt-master-build'
-- 
2.14.3

--
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