def test_no_apparmor_denies(shell):
    """Check there are no AppArmor denies in the logs raised during Supervisor tests."""
    output = shell.run_check("journalctl -t audit | grep DENIED || true")
    assert not output, f"AppArmor denies found: {output}"
Check there are no AppArmor denies in the logs raised during Supervisor tests.
tests/supervisor_test/test_supervisor.py