Skip to content

Commit

Permalink
tests/kola: remove dtb exceptions in upgrade test SELinux checks
Browse files Browse the repository at this point in the history
  • Loading branch information
HuijingHei committed Oct 31, 2024
1 parent 8ce159a commit 3eefeae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/kola/upgrade/extended/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ selinux-sanity-check() {
# Add in a few temporary glob exceptions
# https://github.com/coreos/fedora-coreos-tracker/issues/1806
[[ "${path}" =~ /etc/selinux/targeted/active/ ]] && continue
# https://github.com/coreos/fedora-coreos-tracker/issues/1808
[[ "${path}" =~ /boot/ostree/.*/dtb ]] && continue
if [[ "${exceptions[$path]:-noexception}" == 'noexception' ]]; then
echo "Unexpected mislabeled file found: ${path}"
found="1"
Expand All @@ -232,6 +230,9 @@ if vereq $version $target_version; then
if ! echo "$state" | grep -q "CoreOS aleph version"; then
fatal "check bootupctl status output"
fi
# cleanup the rollback, or will hit wrong dtb selinux label for old deployment
# https://github.com/coreos/fedora-coreos-tracker/issues/1808
rpm-ostree cleanup -r
# One last check!
selinux-sanity-check
exit 0
Expand Down

0 comments on commit 3eefeae

Please sign in to comment.