Try to fix macOS CI by disabling fg.py, signals.py, torn_escapes.py

These work fine AFAICT, just not in CI.
This commit is contained in:
Johannes Altmanninger 2024-04-12 11:27:10 +02:00
parent 15cd74a3bb
commit f062ad3ad6
5 changed files with 13 additions and 6 deletions

View file

@ -8,7 +8,7 @@ import sys
# and fails this a lot.
#
# Presumably we still have users on macOS that would notice binding errors
if "GITHUB_WORKFLOW" in os.environ and platform.system() == "Darwin":
if "CI" in os.environ and platform.system() == "Darwin":
sys.exit(127)
sp = SpawnedProc()

View file

@ -5,7 +5,6 @@ import sys
import signal
import platform
# Fails on macOS CI
if "CI" in os.environ and platform.system() == "Darwin":
sys.exit(127)

View file

@ -5,6 +5,9 @@ import subprocess
import sys
import time
if "CI" in os.environ and platform.system() == "Darwin":
sys.exit(127)
sp = SpawnedProc()
send, sendline, sleep, expect_prompt, expect_re, expect_str = (
sp.send,

View file

@ -18,7 +18,10 @@ import signal
import subprocess
import sys
if platform.system() == "FreeBSD": # Spurious failure.
if "CI" in os.environ and platform.system() == "Darwin":
sys.exit(127)
if platform.system() == "FreeBSD": # Spurious failure. TODO Only disable this in CI.
sys.exit(127)
expect_prompt()

View file

@ -5,6 +5,11 @@ 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":
sys.exit(127)
sp = SpawnedProc()
send, sendline, sleep, expect_prompt, expect_str, expect_re = (
@ -16,9 +21,6 @@ send, sendline, sleep, expect_prompt, expect_str, expect_re = (
sp.expect_re,
)
if platform.system() == "FreeBSD": # Spurious failure.
sys.exit(127)
# Ensure that signals don't tear escape sequences. See #8628.
expect_prompt()