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:
parent
8a7a413359
commit
f289fe7879
3 changed files with 4 additions and 3 deletions
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue