def __init__(self, dict_config, sysdescr=None): self._site_config = config.SiteConfiguration(dict_config) if sysdescr is not None: sysname, _, partname = sysdescr.partition(':') try: self._system = HostSystem(self._site_config.systems[sysname], partname) except KeyError: raise UnknownSystemError('unknown system: %s' % sysdescr) from None else: self._system = HostSystem(self._autodetect_system()) self._resources = HostResources(self._system.prefix, self._system.stagedir, self._system.outputdir, self._system.perflogdir) self._modules_system = ModulesSystem.create( self._system.modules_system) self._current_run = 0
def setUp(self): self.site_config = config.SiteConfiguration() self.dict_config = copy.deepcopy(fixtures.TEST_SITE_CONFIG)