Lines Matching refs:cls
470 def setUpClass(cls): argument
471 super(BpfCgroupTest, cls).setUpClass()
472 cls._cg_dir = tempfile.mkdtemp(prefix="cg_bpf-")
473 cmd = "mount -t cgroup2 cg_bpf %s" % cls._cg_dir
479 os.rmdir(cls._cg_dir)
481 cls._cg_fd = os.open(cls._cg_dir, os.O_DIRECTORY | os.O_RDONLY)
484 def tearDownClass(cls): argument
485 os.close(cls._cg_fd)
486 subprocess.call(("umount %s" % cls._cg_dir).split())
487 os.rmdir(cls._cg_dir)
488 super(BpfCgroupTest, cls).tearDownClass()