1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +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:
Sergei Trofimov 2017-10-25 09:44:16 +01:00 committed by setrofim
parent 00d1d3d318
commit 95e9d14f9d

View File

@ -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):