fmf: Plumb through $TEST_* variables for unexpected messages

This will allow us to control the value from test plans, in particular
for disabling at least some unexpected message checks for reverse
dependency testing. We don't want to disable unexpected messages
in general for fmf, as we are looking for exactly these in e.g.
selinux-policy reverse dependency tests.

Move from `su` to `runtest`, as with the former it's impossible to plumb
through variables with non-trivial characters, as they cannot be quoted.

Taken from c38692fa4c

(cherry picked from commit 9544f57220)
This commit is contained in:
Martin Pitt 2023-08-26 07:44:51 +02:00 committed by Justin Stephenson
parent d9b8fb2b13
commit 9d5445a99e
4 changed files with 19 additions and 9 deletions

View file

@ -4,3 +4,7 @@ discover:
how: fmf
execute:
how: tmt
# Let's handle them upstream only, don't break Fedora/RHEL reverse dependency gating
environment:
TEST_AUDIT_NO_SELINUX: 1