diff --git a/lisa/target.py b/lisa/target.py index e9f7891900e0504d567488e2652a990ea3b48b01..be538a0f7128c73acc827ec908ff524c5236fe3d 100644 --- a/lisa/target.py +++ b/lisa/target.py @@ -283,6 +283,13 @@ class Target(Loggable, HideExekallID, Configurable): """ return getattr(self.target, attr) + def __dir__(self): + """ + List our attributes plus the ones from the underlying target. + """ + attrs = set(super().__dir__()) | set(dir(self.target)) + return sorted(attrs) + @classmethod def from_conf(cls, conf:TargetConf, res_dir:ArtifactPath=None, plat_info:PlatformInfo=None) -> 'Target': cls.get_logger().info('Target configuration:\n{}'.format(conf))