]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tests: Delete test 066's config file
authorTom Hromatka <tom.hromatka@oracle.com>
Fri, 28 Jul 2023 15:04:50 +0000 (09:04 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 28 Jul 2023 18:34:42 +0000 (12:34 -0600)
After the test has run, delete the config file that
was created in test 066-sudo-systemd_cgclassify-v2.py

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/066-sudo-systemd_cgclassify-v2.py

index fee0812fcc04efd2980cabd22acd64c31984b463..9f0fd3de8fb6ed9c75aec1cad9109fd7b9544e50 100755 (executable)
@@ -170,6 +170,8 @@ def teardown(config):
     # We need a pause, so that cgroup.procs gets updated.
     time.sleep(1)
 
+    os.remove(CONFIG_FILE_NAME)
+
     try:
         Cgroup.delete(config, CONTROLLER, cgname=SLICE, ignore_systemd=True)
     except RunError as re: