test: enable TEST-06-SELINUX in openSUSE

openSUSE switched to SELinux by default for quite some time now, so this test is
also successful.
This commit is contained in:
Antonio Alvarez Feijoo
2025-10-14 16:57:57 +02:00
committed by Luca Boccassi
parent 4db925d7da
commit 2fbfbfc5fa
3 changed files with 5 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ jobs:
sanitizers: ""
llvm: 0
cflags: "-Og"
relabel: no
relabel: yes
vm: 0
no_qemu: 0
no_kvm: 0

View File

@@ -445,8 +445,8 @@ def main() -> None:
summary = Summary.get(args)
# Keep list in sync with TEST-06-SELINUX.sh
if args.name == 'TEST-06-SELINUX' and summary.distribution not in ('fedora', 'centos'):
print('Skipping TEST-06-SELINUX, only enabled for Fedora/CentOS', file=sys.stderr)
if args.name == 'TEST-06-SELINUX' and summary.distribution not in ('centos', 'fedora', 'opensuse'):
print('Skipping TEST-06-SELINUX, only enabled for CentOS/Fedora/openSUSE', file=sys.stderr)
exit(77)
if shell and not sys.stdin.isatty():

View File

@@ -4,8 +4,8 @@ set -eux
set -o pipefail
. /etc/os-release
if ! [[ "$ID" =~ centos|fedora ]]; then
echo "Skipping because only CentOS and Fedora support SELinux tests" >>/skipped
if ! [[ "$ID" =~ centos|fedora|opensuse ]]; then
echo "Skipping because only CentOS, Fedora and openSUSE support SELinux tests" >>/skipped
exit 77
fi