]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: enable TEST-06-SELINUX in openSUSE
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 14 Oct 2025 14:57:57 +0000 (16:57 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 14 Oct 2025 16:56:39 +0000 (17:56 +0100)
openSUSE switched to SELinux by default for quite some time now, so this test is
also successful.

.github/workflows/mkosi.yml
test/integration-tests/integration-test-wrapper.py
test/units/TEST-06-SELINUX.sh

index e5535043a5dc59943cd7a88cb1e7d0f23370bddb..cb0db68b0a7b5ff54e0a7e0687f6fca1c1d2da20 100644 (file)
@@ -137,7 +137,7 @@ jobs:
             sanitizers: ""
             llvm: 0
             cflags: "-Og"
-            relabel: no
+            relabel: yes
             vm: 0
             no_qemu: 0
             no_kvm: 0
index 6c80c3e6546df4cb32cef1249d08d2f465dec6f8..f923c4fbdd5ddc408d6db708e56fcb976d16b456 100755 (executable)
@@ -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():
index 4ab9224a9ea302445c3acb36cb195a38258e219b..5cf6e80815b125154d8e37d5ce6f9313aa90dd84 100755 (executable)
@@ -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