From f8466ca798acd124eebbba2655894ebd2f777879 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Tue, 20 Jun 2023 07:58:33 +0100 Subject: [PATCH] ci: clean up CentOS 7 related tweaks We have disabled CentOS 7 tests in CI. This patch reverts the changes introduced in the following commit: 24bc083653f7d2b984653194e921b1ff32292b3b ci: disable some tests on CentOS 7 Signed-off-by: Radostin Stoyanov --- test/others/ns_ext/run.sh | 2 -- test/others/ns_ext/run_pidns.sh | 3 --- test/others/rpc/run.sh | 10 +--------- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/test/others/ns_ext/run.sh b/test/others/ns_ext/run.sh index e416f95e5..4ebe3e280 100755 --- a/test/others/ns_ext/run.sh +++ b/test/others/ns_ext/run.sh @@ -4,8 +4,6 @@ set -x if [[ "$1" == "pid" ]]; then NS=pid - # CentOS 7 kernels do not have NSpid -> skip this test - grep NSpid /proc/self/status || exit 0 else NS=net fi diff --git a/test/others/ns_ext/run_pidns.sh b/test/others/ns_ext/run_pidns.sh index 08c5bff8e..db12106e0 100755 --- a/test/others/ns_ext/run_pidns.sh +++ b/test/others/ns_ext/run_pidns.sh @@ -2,9 +2,6 @@ set -e -# CentOS 7 kernels do not have NSpid -> skip this test -grep NSpid /proc/self/status || exit 0 - # This test creates a process in non-host pidns and then dumps it and restores # it into host pidns. We use pid >100000 in non-host pidns to make sure it does # not intersect with some host pid on restore but it is potentially racy so diff --git a/test/others/rpc/run.sh b/test/others/rpc/run.sh index 9be577587..afd4fb5e3 100755 --- a/test/others/rpc/run.sh +++ b/test/others/rpc/run.sh @@ -1,14 +1,6 @@ #!/bin/bash -set -ex - -if [ -e /etc/os-release ]; then - . /etc/os-release - if [ "$ID" == "centos" ] && [[ "$VERSION_ID" == "7"* ]];then - echo "Skipping tests on CentOS 7 because they do not work in CI" - exit 0 - fi -fi +set -e CRIU=./criu