From e07ec38ac0837cc18e74eeaaa594f66658839a65 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 24 Oct 2020 20:13:39 -0700 Subject: [PATCH] add exemption list for Autotools macOS build in CI tool check Related to #1851. --- ci/tests.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ci/tests.py b/ci/tests.py index 2f514aa8a..8e4119c03 100644 --- a/ci/tests.py +++ b/ci/tests.py @@ -4,6 +4,7 @@ test cases that are only relevant to run in CI ''' +import platform import pytest import shutil import subprocess @@ -66,6 +67,16 @@ def test_existence(binary: str): 'vimdot', ] + tools_not_built_with_autotools_on_macos = [ + 'dotty', + 'gvedit', + 'lefty', + 'lneato', + 'mingle', + 'smyrna', + 'vimdot', + ] + os_id = os.getenv('OS_ID') # FIXME: Remove skip when @@ -101,6 +112,14 @@ def test_existence(binary: str): check_that_tool_does_not_exist(binary, os_id) pytest.skip(binary + ' is not built with MSBuild (#1837)') + # FIXME: Remove skip when + # https://gitlab.com/graphviz/graphviz/-/issues/1854 is fixed + if os.getenv('build_system') == 'autotools': + if platform.system() == 'Darwin': + if binary in tools_not_built_with_autotools_on_macos: + check_that_tool_does_not_exist(binary, os_id) + pytest.skip(binary + ' is not built with autotools on macOS (#1854)') + assert shutil.which(binary) is not None def check_that_tool_does_not_exist(tool, os_id): -- 2.40.0