Commit graph

5 commits

Author SHA1 Message Date
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
Milos Malik
ab5c434f53 improve the failing tests
The /policycoreutils/setfiles_binary test: the --downloaddir option
is not recognized by the latest version of DNF. The option is removed
now.

The /other/update-packages test: the --skip-broken option is not
recognized by the latest version of DNF. The option is removed now.

The /selinux-policy/install-uninstall-dsp-packages test: let's not
run this test together with other tests, because it often finds
a problem that brakes the environment for the following tests.
2024-05-18 11:21:13 +02:00
Milos Malik
1bf11b6606 convert metadata of all policycoreutils tests to TMT/FMF 2022-04-26 13:18:49 +00:00
Vit Mojzis
d686d5b10c policycoreutils/setfiles_binary: fix yaml formatting
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2021-07-16 14:42:09 +02:00
Vit Mojzis
99db07804e policycoretuils: add new test for setfiles with binary policy
setfiles didn't allow using "-c" parameter (binary policy) when path was
specified. Verify that setfiles now gives the same results regardless of
weather binary policy was provided.

The TC covers BZ#1973754

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2021-07-09 17:17:41 +02:00