mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-21 01:42:15 +00:00
27fdca22a8
The case ran xcatprobe xcatmn through grep -i selinux and checked the rc of the pipeline. Nothing in the output named SELinux, so grep exited 1, the case failed with an empty output, and the log carries no checkpoint and no reason. The probe prints every checkpoint, so the diagnostics existed and the filter threw them away. The case now runs the probe with -H, which runs the checks on this node instead of dispatching them, and keeps the whole output. It asserts that the SELinux checkpoint is marked [ OK ] and is not marked [FAIL], which xcatprobe writes for a checkpoint that passes and one that fails. It no longer asserts the rc of the probe: a management node under test can report another checkpoint as a problem, and that is not this case. probe_xcatmn_selinux_case.t fails 3 of its 11 checks without this change, on rome01. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>