From 6501f7ab6f136a68efd8557f84d75528a381c0ba Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 2 Apr 2024 19:57:57 +0200 Subject: [PATCH] tests: Disable terminal.py under asan We want asan to tell us about memory errors, not randomly fail tests because it's too slow. --- tests/pexpects/terminal.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/pexpects/terminal.py b/tests/pexpects/terminal.py index 89f9e88c3..a69091b56 100644 --- a/tests/pexpects/terminal.py +++ b/tests/pexpects/terminal.py @@ -2,6 +2,14 @@ from pexpect_helper import SpawnedProc import platform +import os +import sys + +# Disable under SAN - keeps failing because the timing is too tight +if "FISH_CI_SAN" in os.environ: + sys.exit(0) + + # Set a 0 terminal size sp = SpawnedProc(args=["-d", "term-support"], dimensions=(0, 0)) send, sendline, sleep, expect_prompt, expect_re, expect_str = (