diff --git a/tests/selabel-functions/runtest.sh b/tests/selabel-functions/runtest.sh index 1b0e35d..64d593f 100755 --- a/tests/selabel-functions/runtest.sh +++ b/tests/selabel-functions/runtest.sh @@ -186,10 +186,10 @@ EOF" rlRun "cat > $TmpDir/my_contexts <27"; then - rlRun "./test_open CTX_FILE $TmpDir/my_contexts NULL 1 0 2> >(tee output >&2)" 22 - else + if rlIsFedora "<27" || rlIsRHEL "<=7"; then rlRun "./test_open CTX_FILE $TmpDir/my_contexts NULL 1 0 2> >(tee output >&2)" 0 + else + rlRun "./test_open CTX_FILE $TmpDir/my_contexts NULL 1 0 2> >(tee output >&2)" 22 fi rlRun "grep 'line 1 has invalid context my_user_u:my_role_r:my_type_t:s0' output"