Skip to content

Commit

Permalink
ci: Add make check-ovsdb-cluster tests to GitHub action ci.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Simon Horman <[email protected]>
Signed-off-by: 0-day Robot <[email protected]>
  • Loading branch information
chaudron authored and ovsrobot committed Dec 19, 2023
1 parent 0b6fe0a commit 9526696
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .ci/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ jobs:
m32: m32
opts: --disable-ssl

- compiler: gcc
testsuite: check-ovsdb-cluster

steps:
- name: checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 9526696

Please sign in to comment.