]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tests/ftests: cgroup: rename blacklist, whitelist terms
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 8 May 2023 05:18:17 +0000 (10:48 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 11 May 2023 14:18:48 +0000 (08:18 -0600)
Rename 'cgsnapshot_blacklist.conf -> cgsnapshot_denylist.conf'.  Also,
update the error messages, check to search for replaced terms.

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

index e8436f5b522fed9692edc4e96b7f2fddd2b57e84..25827d17b2af24cdec50eb78cd31994af965d9a1 100644 (file)
@@ -598,13 +598,13 @@ class Cgroup(object):
                 config.container.run(
                                         ['sudo',
                                          'touch',
-                                         '/etc/cgsnapshot_blacklist.conf']
+                                         '/etc/cgsnapshot_denylist.conf']
                                     )
             except RunError as re:
                 if re.ret == 0 and 'unable to resolve host' in re.stderr:
                     pass
         else:
-            Run.run(['sudo', 'touch', '/etc/cgsnapshot_blacklist.conf'])
+            Run.run(['sudo', 'touch', '/etc/cgsnapshot_denylist.conf'])
 
         try:
             if config.args.container:
@@ -613,7 +613,7 @@ class Cgroup(object):
                 res = Run.run(cmd)
         except RunError as re:
             if re.ret == 0 and \
-               'neither blacklisted nor whitelisted' in re.stderr:
+               'neither deny nor allow list' in re.stderr:
                 res = re.stdout
             elif re.ret == 0 and 'ERROR: can\'t get' in re.stderr:
                 res = re.stdout