From 7ded10180bddfc97fc31f791e40eec0d70ad98c6 Mon Sep 17 00:00:00 2001 From: Blanca Fuentes Date: Wed, 11 Dec 2024 17:18:40 +0100 Subject: [PATCH] Fix bugs --- reframe/core/modules.py | 2 +- reframe/core/schedulers/slurm.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/reframe/core/modules.py b/reframe/core/modules.py index e1d4e8088..45cbac0b9 100644 --- a/reframe/core/modules.py +++ b/reframe/core/modules.py @@ -750,7 +750,7 @@ def _do_validate(self): modulecmd = os.getenv('MODULESHOME') if modulecmd is None: raise ConfigError( - f'could not find a sane TMod31 installation: {e}' + 'could not find a sane TMod31 installation' ) try: modulecmd = os.path.join(modulecmd, 'modulecmd.tcl') diff --git a/reframe/core/schedulers/slurm.py b/reframe/core/schedulers/slurm.py index 1a4d404fb..65d4a3256 100644 --- a/reframe/core/schedulers/slurm.py +++ b/reframe/core/schedulers/slurm.py @@ -923,6 +923,7 @@ def _find_devices(self, node_feats: list) -> Union[dict, None]: 'the configuration file.') return None else: + devices = [] for device_i in devices_raw: devices = [item.rsplit(':', 1)[0] for item in device_i] devices = [','.join(devices)]