From 3676e925b29e3a95b582d49e81dfdbf8cbdf3a79 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Wed, 7 Aug 2024 10:13:47 +0000 Subject: [PATCH] Tools: Disable timeout utilty test on MacOS due to sporadic failures We suspect the failures to be due to load on CI runners, so disabling this test for now. --- loki/tools/tests/test_tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/loki/tools/tests/test_tools.py b/loki/tools/tests/test_tools.py index c1e82e7b8..1dbb43689 100644 --- a/loki/tools/tests/test_tools.py +++ b/loki/tools/tests/test_tools.py @@ -9,6 +9,7 @@ Unit tests for utility functions and classes in loki.tools. """ +import platform import sys import operator as op from contextlib import contextmanager @@ -310,6 +311,9 @@ def test_execute(here, capsys): execute(cmd) +@pytest.mark.skipif(platform.system() == 'Darwin', + reason='Timeout utility test sporadically fails on MacOS CI runners.' +) def test_timeout(): # Should not trigger: start = perf_counter()