def cgmigrate(group_from, group_to): """Migrate tasks from one group to another.""" subsystems = cgroups.available_subsystems() for subsystem in subsystems: try: _transfer_processes(subsystem, group_from, group_to) except: # pylint: disable=W0702 pass
def test_available_subsystems(self): """Test functions """ subsystems = cgroups.available_subsystems() self.assertEqual(['cpu', 'cpuacct', 'memory'], subsystems)