From cb3fbd3a5c93c61d08d7c98c349db864f26d194d Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 15 Dec 2024 17:32:47 +0100 Subject: [PATCH] pexpects: Disable 2 only on CI As the comment says --- tests/pexpects/bind_mode_events.py | 5 +---- tests/pexpects/torn_escapes.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/pexpects/bind_mode_events.py b/tests/pexpects/bind_mode_events.py index a68451af9..4ee9c37c2 100644 --- a/tests/pexpects/bind_mode_events.py +++ b/tests/pexpects/bind_mode_events.py @@ -5,10 +5,7 @@ import sys import signal import platform -if platform.system() == "FreeBSD": # Spurious failure. TODO Only disable this in CI. - sys.exit(127) - -if "CI" in os.environ and platform.system() == "Darwin": +if "CI" in os.environ and platform.system() in ["Darwin", "FreeBSD"]: sys.exit(127) sp = SpawnedProc() diff --git a/tests/pexpects/torn_escapes.py b/tests/pexpects/torn_escapes.py index df2fbc538..a528ef81e 100644 --- a/tests/pexpects/torn_escapes.py +++ b/tests/pexpects/torn_escapes.py @@ -5,10 +5,7 @@ import signal import sys from pexpect_helper import SpawnedProc -if platform.system() == "FreeBSD": # Spurious failure. TODO Only disable this in CI. - sys.exit(127) - -if "CI" in os.environ and platform.system() == "Darwin": +if "CI" in os.environ and platform.system() in ["Darwin", "FreeBSD"]: sys.exit(127) sp = SpawnedProc()