modify tests to run successfully on CentOS stream machines
Some tests failed when executed on CentOS-stream machines because of insufficient code conditions. From now on, this problem should not happen anymore.
This commit is contained in:
parent
2e6dd329b8
commit
e978f12992
4 changed files with 5 additions and 5 deletions
|
|
@ -39,7 +39,7 @@ rlJournalStart
|
|||
rlRun "sestatus"
|
||||
rlPhaseEnd
|
||||
|
||||
if rlIsRHEL ">=8.3" || rlIsFedora; then
|
||||
if rlIsRHEL ">=8.3" || rlIsFedora || rlIsCentOS ">=8.3" ; then
|
||||
rlPhaseStartTest "#1879368"
|
||||
rlRun "cat ./reproducer.py"
|
||||
rlRun "./reproducer.py" 0
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ PACKAGE="libselinux"
|
|||
|
||||
rlJournalStart
|
||||
# validatetrans utility is available since Fedora 32
|
||||
if ! rlIsRHEL ">8" && ! rlIsFedora ">31"; then
|
||||
if ! rlIsRHEL ">8" && ! rlIsFedora ">31" && ! rlIsCentOS ">8" ; then
|
||||
rlLog "Not applicable to this OS version."
|
||||
rlJournalEnd
|
||||
exit 0
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ rlJournalStart
|
|||
rlAssertRpm "glibc"
|
||||
rlAssertRpm "gcc"
|
||||
|
||||
if rlIsRHEL ">=7" || rlIsFedora; then
|
||||
if rlIsRHEL ">=7" || rlIsFedora || rlIsCentOS ">=7" ; then
|
||||
rlRun -l "gcc test_root.c -o test_root -lsemanage -Wall -Wextra -std=c99"
|
||||
fi
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ rlJournalStart
|
|||
ERR_ABORT=134
|
||||
rlPhaseEnd
|
||||
|
||||
if rlIsRHEL ">=7" || rlIsFedora; then
|
||||
if rlIsRHEL ">=7" || rlIsFedora || rlIsCentOS ">=7" ; then
|
||||
rlPhaseStartTest "semanage_root, semanage_test_root"
|
||||
rlRun "./test_root init"
|
||||
rlRun "./test_root handle"
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ rlJournalStart
|
|||
if rlIsRHEL '<=6'; then
|
||||
SEUSERS_PATH="/etc/selinux/$POLICY_TYPE/seusers"
|
||||
fi
|
||||
elif rlIsRHEL '>=8'; then
|
||||
elif rlIsRHEL '>=8' || rlIsCentOS '>=8' ; then
|
||||
SEUSERS_PATH="/var/lib/selinux/$POLICY_TYPE/active/seusers"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue