selinux/policycoreutils/setfiles_binary/main.fmf
Vit Mojzis caa904c01f Fix "adjust" statements
Whenever a key is defined in the tmt hierarchy and some child also
defines that key, the child's will overwrite the previous one. The "+"
changes the operation to "append", so the content of key+ in the child
is added to the existing key.

Meaning that any "adjust" statement in a test plan using a test that
defines it's own "adjust:" is ignored.

Since we are expecting other statements to be appended to the "adjust"
sections, the content of each section needs to be a single list item as
opposed to a set of key-value pairs (first line needs to start with a
hyphen).

- Replace all "adjust:" sections with "adjust+:" in order to honor any
  adjustments further up the tree (parent tests, or test plans).
- Fix malformed "adjust" sections (sets of key-value pairs)

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2025-10-09 20:22:22 +02:00

25 lines
607 B
Text

summary: setfiles should allow checking given path against binary policy
description: ''
contact: Milos Malik <mmalik@redhat.com>
component:
- policycoreutils
recommend:
- policycoreutils
- rpm
- cpio
enabled: true
tag:
- NoRHEL4
- NoRHEL5
- NoRHEL6
- NoRHEL7
- targeted
link:
- verifies: https://bugzilla.redhat.com/show_bug.cgi?id=1973754
adjust+:
- enabled: false
when: distro == rhel-4, rhel-5, rhel-6, rhel-7
continue: false
extra-nitrate: TC#0611169
extra-summary: /CoreOS/policycoreutils/Sanity/setfiles_binary
extra-task: /CoreOS/policycoreutils/Sanity/setfiles_binary