1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

ci: Another attempt at fixing the tests

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
This commit is contained in:
Steffen Vogel 2024-03-12 10:36:03 +00:00 committed by Steffen Vogel
parent 8a7a413359
commit f289fe7879
3 changed files with 4 additions and 3 deletions

View file

@ -10,6 +10,7 @@
#include <criterion/criterion.h>
#include <villas/kernel/kernel.hpp>
#include <villas/utils.hpp>
using namespace villas::kernel;
@ -47,7 +48,7 @@ Test(kernel, sizes) {
Test(kernel, hugepages) {
int ret;
if (getuid() != 0) {
if (!villas::utils::isPrivileged()) {
cr_skip("Super-user permissions required.");
}

View file

@ -8,7 +8,7 @@
set -e
if [[ "${EUID}" -ne 0 -o -n "${CI}" ]]; then
if [ "${EUID}" -ne 0 ] || [ -n "${CI}" ]; then
echo "Test requires root permissions"
exit 99
fi

View file

@ -8,7 +8,7 @@
set -e
if [[ "${EUID}" -ne 0 -o -n "${CI}" ]]; then
if [ "${EUID}" -ne 0 ] || [ -n "${CI}" ]; then
echo "Test requires root permissions"
exit 99
fi