Skip to content

Commit a45043f

Browse files
authored
Merge pull request #282 from bedroge/perl_hook_additional_version
Restrict Perl hook to EESSI 2026.06, also apply it to Perl 5.38.0
2 parents 07ff518 + 44ea16a commit a45043f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

eb_hooks.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,12 +1686,15 @@ def pre_test_hook_lammps_ignore_failure_arm_generic(self, *args, **kwargs):
16861686

16871687
def pre_test_hook_perl_increase_test_timeout(self, *args, **kwargs):
16881688
"""
1689-
Tests fail for Perl v5.42.0 when run with standard timeout. So, increase timeout by a factor of 10.
1689+
Tests fail for different Perl versions in EESSI 2026.06 when run with standard timeout. So, increase timeout by a factor of 10.
16901690
See https://github.com/EESSI/software-layer/pull/1556#issuecomment-5183283054
16911691
"""
1692-
if self.name == "Perl" and self.version == "5.42.0":
1693-
# increase timeout for Perl tests, to avoid flaky failures in tests like dist/threads/t/libc.t
1694-
env.setvar('PERL_TEST_TIME_OUT_FACTOR', '10')
1692+
eessi_version = get_eessi_envvar('EESSI_VERSION')
1693+
if self.name == 'Perl':
1694+
if eessi_version == '2026.06':
1695+
if self.version in ['5.38.0', '5.42.0']:
1696+
# increase timeout for Perl tests, to avoid flaky failures in tests like dist/threads/t/libc.t
1697+
env.setvar('PERL_TEST_TIME_OUT_FACTOR', '10')
16951698

16961699
def pre_test_hook_ignore_failing_tests_SciPybundle(self, *args, **kwargs):
16971700
"""

0 commit comments

Comments
 (0)