Skip to content

Commit 221667b

Browse files
committed
Remove saved_sanity_check_fail_msgs
1 parent 7fd8d78 commit 221667b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

easybuild/framework/extensioneasyblock.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ def sanity_check_step(self, exts_filter=None, custom_paths=None, custom_commands
176176
# make sure Extension sanity check step is run once, by using a single empty list of extra modules
177177
lists_of_extra_modules = [[]]
178178

179-
saved_sanity_check_fail_msgs = self.sanity_check_fail_msgs
180-
self.sanity_check_fail_msgs = []
181179
# only load fake module + extra modules for stand-alone installations (not for extensions),
182180
# since for extension the necessary modules should already be loaded at this point;
183181
# take into account that module may already be loaded earlier in sanity check
@@ -204,9 +202,7 @@ def sanity_check_step(self, exts_filter=None, custom_paths=None, custom_commands
204202
self.log.info("Sanity check for %s successful!", self.name)
205203
else:
206204
sanity_check_ok = False
207-
if self.is_extension:
208-
self.sanity_check_fail_msgs = saved_sanity_check_fail_msgs + self.sanity_check_fail_msgs
209-
else:
205+
if not self.is_extension:
210206
msg = "Sanity check for %s failed: %s" % (self.name, '; '.join(self.sanity_check_fail_msgs))
211207
raise EasyBuildError(msg)
212208

0 commit comments

Comments
 (0)