tests/bind: Skip on Github macOS

This just fails too much to be of any use.
This commit is contained in:
Fabian Homborg 2021-05-23 15:25:12 +02:00
parent 35f77a5473
commit 2b0b0fe042
2 changed files with 13 additions and 0 deletions

View File

@ -53,6 +53,9 @@ function test_pexpect_file
if test "$exit_status" -eq 0
set test_duration (delta $starttime)
say green "ok ($test_duration $unit)"
else if test "$exit_status" -eq 127
say blue "SKIPPED"
set exit_status 0
end
return $exit_status
end

View File

@ -1,5 +1,15 @@
#!/usr/bin/env python3
from pexpect_helper import SpawnedProc
import os
import platform
import sys
# Skip on macOS on Github Actions because it's too resource-starved
# 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":
sys.exit(127)
sp = SpawnedProc()
send, sendline, sleep, expect_prompt, expect_re, expect_str = (