]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests/utils: add get_distro() to detect Linux distribution
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 5 Jun 2025 15:36:26 +0000 (21:06 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 16 Jun 2025 14:01:39 +0000 (08:01 -0600)
commit615efc7b7dba86eb81750eb9cdc7b4c1e6594bbb
tree1a3ff6a68f5390e978367111fdb754cb8c860ae5
parent328387f411cd793acb48aa990d6e72c9feb46713
ftests/utils: add get_distro() to detect Linux distribution

Introduce helper function get_distro() to identify the current Linux
distribution. Currently checks for 'Ubuntu' and 'Oracle Linux', which
are the only distros used for testing. Can be extended to support others
in the future.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/utils.py