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 2, 2022
1 parent 26fcb4c commit ffc7145
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/kola/selinux/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# kola
# exclusive: false
# # if it works on QEMU, it should work everywhere
# platforms: qemu

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 ffc7145

Please sign in to comment.