From 8add30e3bf21b7f29eed4632c5ba6a0b8bf0b57d Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 15 Dec 2024 17:33:12 +0100 Subject: [PATCH] pexpects: Disable exit on CI Darwin/FreeBSD --- tests/pexpects/exit.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/pexpects/exit.py b/tests/pexpects/exit.py index c9704b661..9caae5f78 100644 --- a/tests/pexpects/exit.py +++ b/tests/pexpects/exit.py @@ -1,8 +1,13 @@ #!/usr/bin/env python3 from pexpect_helper import SpawnedProc +import os import subprocess import sys import time +import platform + +if "CI" in os.environ and platform.system() in ["Darwin", "FreeBSD"]: + sys.exit(127) sp = SpawnedProc() send, sendline, sleep, expect_prompt, expect_re = (