mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 11:58:55 +00: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:
parent
32701e7783
commit
79c15ff02f
@ -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):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user