Add support for a full cgroup v2 system to the
005-cgsnapshot-basic_snapshot_v2.py functional test. It
continues to support cgroup v1 systems and mixed systems
as well.
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
expected = Cgroup.snapshot_to_dict(CGSNAPSHOT)
actual = Cgroup.snapshot(config, controller=CONTROLLER)
- if expected[CGNAME] != actual[CGNAME]:
+ if expected[CGNAME].controllers[CONTROLLER] != \
+ actual[CGNAME].controllers[CONTROLLER]:
result = consts.TEST_FAILED
cause = "Expected cgsnapshot result did not equal actual cgsnapshot"