Add get_cgroup_manager() that reads the CGROUP_MANAGER environment
variable, defaulting to 'cgroupfs'. This allows running the entire
test suite with a different cgroup manager without modifying tests.
Also add get_test_environment() helper that returns a dict describing
the current test environment (uid, rootless, systemd, cgroup_v2, etc.)
for debugging purposes.
The run_and_get_output() function now uses the env var when the
cgroup_manager parameter is not explicitly specified, allowing tests
to inherit the environment setting while still supporting explicit
overrides.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>