Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion easybuild/easyblocks/p/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,15 @@ def test_step(self):
'excluded_tests': ' '.join(excluded_tests)
})

tests_out, tests_ec = super(EB_PyTorch, self).test_step(return_output_ec=True)
test_result = super(EB_PyTorch, self).test_step(return_output_ec=True)
if test_result is None:
if self.cfg['runtest'] is False:
msg = "Do not set 'runtest' to False, use --skip-test-step instead."
else:
msg = "Tests did not run. Make sure 'runtest' is set to a command."
raise EasyBuildError(msg)

tests_out, tests_ec = test_result

def get_count_for_pattern(regex, text):
"""Match the regexp containing a single group and return the integer value of the matched group.
Expand Down