]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests-999: fix random dir name generation logic 355/head
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 13 Jun 2023 04:29:21 +0000 (09:59 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 14 Jun 2023 13:55:05 +0000 (07:55 -0600)
commit82bcebb020c40be21492a6ce752d9ee5bebb5a29
tree14e2acd32a1aa56b95396391bd6c51e0ff1f0318
parent1b53e2af890f07f519c7074d052380f6132850f1
ftests-999: fix random dir name generation logic

The current logic of creating a random directory under the /tmp/
the directory is incorrect because the random directory is generated
under '/tmp/999stress', making it a common parent directory and
attempting to create/delete it will fail the test instance, that
overlaps. Fix this by generating '/tmp/<random-999stress>' making
unique per run.

-----------------------------------------------------------------
Test Results:
        Run Date:                          Jun 12 11:39:41
        Passed:                                  1 test(s)
        Skipped:                                 0 test(s)
        Failed:                                  0 test(s)
-----------------------------------------------------------------
Timing Results:
        Test                          Time (sec)
        ----------------------------------------
        setup                               0.00
        999-stress-cgroup_init.py           1.55
        teardown                            0.00
        ----------------------------------------
        Total Run Time                      1.55

Fixes: b81915a1fbe7 ("tests-999: add a random directory to mount path")
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/999-stress-cgroup_init.py