diff --git a/lisa/env.py b/lisa/env.py index 2190d6b7d12824d1b81cc3e95b586f0e0e8f81d2..27edf8cc87aae0d5b749eca944ab03f96205a489 100644 --- a/lisa/env.py +++ b/lisa/env.py @@ -268,11 +268,21 @@ class TestEnv(Loggable, HideExekallID): @classmethod def from_default_conf(cls): + """ + Create a :class:`TestEnv` from the YAML configuration file pointed by + ``LISA_CONF`` environment variable. + """ path = os.environ['LISA_CONF'] return cls.from_one_conf(path) @classmethod def from_one_conf(cls, path): + """ + Create a :class:`TestEnv` from a single YAML configuration file. + + This file will be used to provide a :class:`TargetConf` and + :class:`lisa.platforms.platinfo.PlatformInfo` instances. + """ target_conf = TargetConf.from_yaml_map(path) try: plat_info = PlatformInfo.from_yaml_map(path)