1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

fw/output: add sensible string representation

Add a useful string representation to output classes using class name and
the directory basename.
This commit is contained in:
Sergei Trofimov 2018-04-11 11:12:50 +01:00 committed by Marc Bonnici
parent 32701e7783
commit 79c15ff02f

View File

@ -129,6 +129,12 @@ class Output(object):
artifact = self.get_artifact(name)
return self.get_path(artifact.path)
def __repr__(self):
return '<{} {}>'.format(self.__class__.__name__,
os.path.basename(self.basepath))
__str__ = __repr__
class RunOutput(Output):