]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests: add test to pass pid to systemd scope create via cgcreate
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 28 Apr 2023 04:57:57 +0000 (10:27 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 28 Apr 2023 20:45:02 +0000 (14:45 -0600)
commit30ec5bc8d9c8c73ed9a170dab716237ad6ea9b21
tree08ffc3f048d8b9fa5ca4b4db067e59652580f3c9
parent5176e6139348e8abb8549d2dc71fc444631f024f
ftests: add test to pass pid to systemd scope create via cgcreate

Add a test to pass task pid to systemd scope during creation using the
cgcreate tool.

-----------------------------------------------------------------
Test Results:
        Run Date:                          Apr 27 12:54:10
        Passed:                                  1 test(s)
        Skipped:                                 0 test(s)
        Failed:                                  0 test(s)
-----------------------------------------------------------------
Timing Results:
        Test                                       Time (sec)
        -----------------------------------------------------
        setup                                            0.00
        084-sudo-cgcreate_systemd_scope_pid.py           2.16
        teardown                                         0.00
        -----------------------------------------------------
        Total Run Time                                   2.16

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
TJH: Added one more call to Cgroup.get_pids_in_cgroup()
tests/ftests/084-sudo-cgcreate_systemd_scope_pid.py [new file with mode: 0755]
tests/ftests/Makefile.am