mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	cgroups: Remove quotes from grep expressions in move_all_tasks_to
These quotes end up being passed literally into the shutils function arguments (i.e $3 is '-e', $4 is '"foo"') which means that the grep command never finds matches. `exclude` is a list of comms, which don't have spaces in them, so we can just remove the quotes.
This commit is contained in:
		@@ -155,7 +155,7 @@ class Controller(object):
 | 
			
		||||
        # Build list of tasks to exclude
 | 
			
		||||
        grep_filters = ''
 | 
			
		||||
        for comm in exclude:
 | 
			
		||||
            grep_filters += '-e "{}" '.format(comm)
 | 
			
		||||
            grep_filters += '-e {} '.format(comm)
 | 
			
		||||
        logging.debug('   using grep filter: %s', grep_filters)
 | 
			
		||||
        if grep_filters != '':
 | 
			
		||||
            logging.debug('   excluding tasks which name matches:')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user