1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +00:00

fw/output: implement __str__ JobOutput

Implement a __str__ method for JobOutput to make it easier to format it
into messages.
This commit is contained in:
Sergei Trofimov 2018-05-18 13:44:32 +01:00 committed by Marc Bonnici
parent 050722ee8f
commit 5291e389dc

View File

@ -133,7 +133,9 @@ class Output(object):
return '<{} {}>'.format(self.__class__.__name__,
os.path.basename(self.basepath))
__str__ = __repr__
def __str__(self):
return os.path.basename(self.basepath)
class RunOutput(Output):