File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
stackhpc_cloud_tests/host Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,9 @@ def test_selinux(host):
23
23
if host .system_info .distribution in {"debian" , "ubuntu" }:
24
24
pytest .skip (reason = "SELinux is not supported on Debian or Ubuntu" )
25
25
# Desired state: enforcing, permissive or disabled
26
- expected_state = os .environ ["SELINUX_STATE" ]
27
- assert expected_state in {"enforcing" , "permissive" , "disabled" }
28
- expected_status = "disabled" if expected_state == "disabled" else "enabled"
29
- expected_mode = expected_state
26
+ expected_mode = os .environ ["SELINUX_STATE" ]
27
+ assert expected_mode in {"enforcing" , "permissive" , "disabled" }
28
+ expected_status = "disabled" if expected_mode == "disabled" else "enabled"
30
29
selinux = host .check_output ("sestatus" )
31
30
selinux = selinux .splitlines ()
32
31
# Remove duplicate whitespace characters in output
You can’t perform that action at this time.
0 commit comments