kernel/selinux-testsuite: ensure test policy is fully unloaded

Since the testsuite now loads more policy modules, the `semodule -r
test_policy` command is not enough for a full cleanup. Do `make -C
policy unload instead`.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
This commit is contained in:
Ondrej Mosnacek 2021-01-20 10:52:03 +01:00
commit cf69ccdee8

View file

@ -477,10 +477,10 @@ rlJournalStart
rlRun "pushd selinux-testsuite"
# Submit report to beaker.
rlFileSubmit "results.log" "selinux-testsuite.results.$(uname -r).txt"
rlRun "$TS_ENV make -s -C policy unload $make_vars" 0-2
rlRun "$TS_ENV make -s clean $make_vars" 0-2
rlRun "popd"
rlRun "semodule -r test_policy" 0,1
rlRun "sleep 5" 0
rlRun "dmesg | grep -i \"rcu_sched detected stalls\"" 1
rlFileRestore