mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +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:
committed by
Marc Bonnici
parent
32701e7783
commit
79c15ff02f
@@ -129,6 +129,12 @@ class Output(object):
|
|||||||
artifact = self.get_artifact(name)
|
artifact = self.get_artifact(name)
|
||||||
return self.get_path(artifact.path)
|
return self.get_path(artifact.path)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<{} {}>'.format(self.__class__.__name__,
|
||||||
|
os.path.basename(self.basepath))
|
||||||
|
|
||||||
|
__str__ = __repr__
|
||||||
|
|
||||||
|
|
||||||
class RunOutput(Output):
|
class RunOutput(Output):
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user