It's possible that the libcgroup tests are being run
on a system that doesn't have libcgroup installed.
Ensure that the deny list file (currently named
cgsnapshot_blacklist.conf but slated to be renamed)
exists.

Signed-off-by: Tom Hromatka <tom.hroma...@oracle.com>
---
 ftests/cgroup.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ftests/cgroup.py b/ftests/cgroup.py
index 4ff64c6f3224..947cbbe940ec 100644
--- a/ftests/cgroup.py
+++ b/ftests/cgroup.py
@@ -336,11 +336,11 @@ class Cgroup(object):
         if controller is not None:
             cmd.append(controller)
 
+        # ensure the deny list file exists
         if config.args.container:
-            # if we're running in a container, it's unlikely that libcgroup
-            # was installed and thus /etc/cgsnapshot_blacklist.conf likely
-            # doesn't exist.  Let's make it
             config.container.run(['sudo', 'touch', 
'/etc/cgsnapshot_blacklist.conf'])
+        else:
+            Run.run(['sudo', 'touch', '/etc/cgsnapshot_blacklist.conf'])
 
         if config.args.container:
             res = config.container.run(cmd)
-- 
2.26.2



_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to