mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	framework/resource: clearer file and exe strings
Update the File and Executable resource string representations to actually include the words "file" and "executable" respectively to make messages containing these representations (e.g. when a resource is not found) clearer.
This commit is contained in:
		
				
					committed by
					
						 setrofim
						setrofim
					
				
			
			
				
	
			
			
			
						parent
						
							00d1d3d318
						
					
				
				
					commit
					95e9d14f9d
				
			| @@ -93,7 +93,7 @@ class File(Resource): | ||||
|         return self.path == path | ||||
|  | ||||
|     def __str__(self): | ||||
|         return '<{}\'s {} {}>'.format(self.owner, self.kind, self.path) | ||||
|         return '<{}\'s {} {} file>'.format(self.owner, self.kind, self.path) | ||||
|  | ||||
|  | ||||
| class Executable(Resource): | ||||
| @@ -109,7 +109,7 @@ class Executable(Resource): | ||||
|         return self.filename == os.path.basename(path) | ||||
|  | ||||
|     def __str__(self): | ||||
|         return '<{}\'s {} {}>'.format(self.owner, self.abi, self.filename) | ||||
|         return '<{}\'s {} {} executable>'.format(self.owner, self.abi, self.filename) | ||||
|  | ||||
|  | ||||
| class ReventFile(Resource): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user