diff mbox series

[ovs-dev,v4,02/12] ci: Add make check-ovsdb-cluster tests to GitHub action ci.

Message ID 170297673418.1686626.4123648297931600961.stgit@ebuild
State Changes Requested
Headers show
Series ci: Add remaining check tests to GitHub actions. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation success test: success

Commit Message

Eelco Chaudron Dec. 19, 2023, 9:05 a.m. UTC
This patch adds 'make check-ovsdb-cluster' tests to GitHub action ci.
In addition, this patch also makes sure this test and 'make check' do
not run as root.

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Acked-by: Simon Horman <horms@ovn.org>
---
 .ci/linux-build.sh                   |    5 ++++-
 .github/workflows/build-and-test.yml |    3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index 67c01a644..bb540703e 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -129,11 +129,14 @@  else
     build_ovs
     for testsuite in $TESTSUITE; do
         run_as_root=
+        if [ "$testsuite" != "check" ] && \
+           [ "$testsuite" != "check-ovsdb-cluster" ] ; then
+            run_as_root="sudo -E PATH=$PATH"
+        fi
         if [ "${testsuite##*dpdk}" != "$testsuite" ]; then
             sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages' || true
             [ "$(cat /proc/sys/vm/nr_hugepages)" = '1024' ]
             export DPDK_EAL_OPTIONS="--lcores 0@1,1@1,2@1"
-            run_as_root="sudo -E PATH=$PATH"
         fi
         $run_as_root make $testsuite TESTSUITEFLAGS=${JOBS} RECHECK=yes
     done
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
index 09654205e..5d441157c 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -164,6 +164,9 @@  jobs:
             m32:          m32
             opts:         --disable-ssl
 
+          - compiler:     gcc
+            testsuite:    check-ovsdb-cluster
+
     steps:
     - name: checkout
       uses: actions/checkout@v3