From ada43b15c56a0a4121133da68c1794275298d96b Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Wed, 16 Sep 2026 11:53:20 +0300 Subject: [PATCH 1/3] test_get_process_children__with_child is updated Check of child::.cmdline() is added. --- tests/test_os_ops_common.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_os_ops_common.py b/tests/test_os_ops_common.py index 0ce9147..66fee8e 100644 --- a/tests/test_os_ops_common.py +++ b/tests/test_os_ops_common.py @@ -2874,6 +2874,14 @@ def test_get_process_children__with_child( assert actual_child_pid == expected_child_pid + child_cmdline = childs[0].cmdline() + + logging.info("child cmdline: {}".format( + childs[0].cmdline(), + )) + assert type(child_cmdline) is list + assert child_cmdline == ["sleep", "60"] + p1.terminate() p1.wait() return From c4fec95cafe7d6e3954f7d53e55f629fb1cc456f Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Wed, 16 Sep 2026 12:58:26 +0300 Subject: [PATCH 2/3] fix: rockylinux returns another cmdline --- tests/test_os_ops_common.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/test_os_ops_common.py b/tests/test_os_ops_common.py index 66fee8e..9ef14af 100644 --- a/tests/test_os_ops_common.py +++ b/tests/test_os_ops_common.py @@ -2877,10 +2877,19 @@ def test_get_process_children__with_child( child_cmdline = childs[0].cmdline() logging.info("child cmdline: {}".format( - childs[0].cmdline(), + child_cmdline, )) assert type(child_cmdline) is list - assert child_cmdline == ["sleep", "60"] + + if child_cmdline == ["sleep", "60"]: + pass + elif child_cmdline == ['/usr/bin/coreutils', '--coreutils-prog-shebang=sleep', '/usr/bin/sleep', '60']: + # Rocky Linux + pass + else: + raise RuntimeError("Unknown child_cmdline {}".format( + child_cmdline, + )) p1.terminate() p1.wait() From e7562832578457f568897dd9537142e4b2e42a29 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Wed, 16 Sep 2026 13:06:31 +0300 Subject: [PATCH 3/3] fix: rockylinux 10 (GitHub CI) --- tests/test_os_ops_common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_os_ops_common.py b/tests/test_os_ops_common.py index 9ef14af..4ab1b4e 100644 --- a/tests/test_os_ops_common.py +++ b/tests/test_os_ops_common.py @@ -2886,6 +2886,9 @@ def test_get_process_children__with_child( elif child_cmdline == ['/usr/bin/coreutils', '--coreutils-prog-shebang=sleep', '/usr/bin/sleep', '60']: # Rocky Linux pass + elif child_cmdline == ['/bin/sh', '-c', 'exec sleep 60']: + # Rocky Linux 10 (GitHub CI) + pass else: raise RuntimeError("Unknown child_cmdline {}".format( child_cmdline,