mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
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:
committed by
Luca Boccassi
parent
4db925d7da
commit
2fbfbfc5fa
2
.github/workflows/mkosi.yml
vendored
2
.github/workflows/mkosi.yml
vendored
@@ -137,7 +137,7 @@ jobs:
|
||||
sanitizers: ""
|
||||
llvm: 0
|
||||
cflags: "-Og"
|
||||
relabel: no
|
||||
relabel: yes
|
||||
vm: 0
|
||||
no_qemu: 0
|
||||
no_kvm: 0
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user