Skip to content

Commit 83d415f

Browse files
committed
Merge branch 'lammps_hook' into test_lammps_hook
2 parents 0fc7eb8 + c595f7c commit 83d415f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

eb_hooks.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,16 @@ def pre_test_hook_ignore_failing_tests_LAMMPS_ARM_generic(self, *args, **kwargs)
15861586
mcpu_generic = '-DKokkos_ARCH_ARMV80=yes'
15871587
cflags = os.getenv('CFLAGS')
15881588
if mcpu_generic in cflags:
1589-
self.cfg['testopts'] = "|| echo ignoring failing tests"
1589+
self.orig_ignore_test_failure = build_option('ignore_test_failure')
1590+
update_build_option('ignore_test_failure', True)
1591+
1592+
1593+
def post_test_hook(self, *args, **kwargs):
1594+
"""
1595+
If self.orig_ignore_test_failure exists reset ignore_test_failure to its original value.
1596+
"""
1597+
if hasattr(self, "orig_ignore_test_failure") and self.orig_ignore_test_failure != build_option('ignore_test_failure'):
1598+
update_build_option('ignore_test_failure', self.orig_ignore_test_failure)
15901599

15911600

15921601
def pre_single_extension_hook(ext, *args, **kwargs):

0 commit comments

Comments
 (0)