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 committed Nov 3, 2022
1 parent 26fcb4c commit a387a90
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 a387a90

Please sign in to comment.