Skip to content

Commit

Permalink
tests/kola/selinux: add test that policy isn't recompiled
Browse files Browse the repository at this point in the history
This is a test for openshift/os#1036. It also
exists in the rpm-ostree CI, but let's have it here too since other
packages can break this.
  • Loading branch information
jlebon authored and HuijingHei committed Oct 10, 2023
1 parent 574c60b commit 9ec4027
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/kola/selinux/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# Verify that the SELinux policy isn't marked as modified.
# See: https://github.com/openshift/os/issues/1036.
## kola:
## exclusive: false
## tags: "platform-independent"

set -xeuo pipefail

. $KOLA_EXT_DATA/commonlib.sh

if ostree admin config-diff | grep 'selinux/targeted/policy'; then
fatal "SELinux policy is marked as modified"
fi
ok "SELinux policy not marked as modified"

0 comments on commit 9ec4027

Please sign in to comment.