From 1c4bb214d2aaa90a9da28ba8b3e88a871d57460b Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Thu, 9 Jun 2022 18:56:20 +0200 Subject: [PATCH] Skip tmux tests on Github Actions macOS This lacks the tmux-256color terminfo entry, leading to spurious warnings like warning: Could not set up terminal. <= no check matches warning: TERM environment variable set to \'tmux-256color\'. <= no check matches warning: Check that this terminal type is supported on this system. <= no check matches warning: Using fallback terminal type \'ansi\'. <= no check matches --- tests/checks/tmux-abbr.fish | 4 ++++ tests/checks/tmux-bind.fish | 4 ++++ tests/checks/tmux-complete.fish | 4 ++++ tests/checks/tmux-prompt.fish | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/tests/checks/tmux-abbr.fish b/tests/checks/tmux-abbr.fish index c8af9fe51..cc6cace58 100644 --- a/tests/checks/tmux-abbr.fish +++ b/tests/checks/tmux-abbr.fish @@ -1,5 +1,9 @@ #RUN: %fish %s #REQUIRES: command -v tmux +# Github Actions currently (2022-06-09) +# doesn't include the tmux-256color terminfo on macOS. +# So we skip tmux tests there. +#REQUIRES: test -z "$CI" -o "$(uname)" != Darwin set -g isolated_tmux_fish_extra_args -C ' set -g fish_autosuggestion_enabled 0 diff --git a/tests/checks/tmux-bind.fish b/tests/checks/tmux-bind.fish index e10a82681..92f311d58 100644 --- a/tests/checks/tmux-bind.fish +++ b/tests/checks/tmux-bind.fish @@ -1,5 +1,9 @@ #RUN: %fish %s #REQUIRES: command -v tmux +# Github Actions currently (2022-06-09) +# doesn't include the tmux-256color terminfo on macOS. +# So we skip tmux tests there. +#REQUIRES: test -z "$CI" -o "$(uname)" != Darwin isolated-tmux-start diff --git a/tests/checks/tmux-complete.fish b/tests/checks/tmux-complete.fish index 3c12a02ac..795114cbd 100644 --- a/tests/checks/tmux-complete.fish +++ b/tests/checks/tmux-complete.fish @@ -1,5 +1,9 @@ #RUN: %fish %s #REQUIRES: command -v tmux +# Github Actions currently (2022-06-09) +# doesn't include the tmux-256color terminfo on macOS. +# So we skip tmux tests there. +#REQUIRES: test -z "$CI" -o "$(uname)" != Darwin isolated-tmux-start diff --git a/tests/checks/tmux-prompt.fish b/tests/checks/tmux-prompt.fish index e1f129e56..dc2b589fc 100644 --- a/tests/checks/tmux-prompt.fish +++ b/tests/checks/tmux-prompt.fish @@ -1,5 +1,9 @@ #RUN: %fish %s #REQUIRES: command -v tmux +# Github Actions currently (2022-06-09) +# doesn't include the tmux-256color terminfo on macOS. +# So we skip tmux tests there. +#REQUIRES: test -z "$CI" -o "$(uname)" != Darwin set -g isolated_tmux_fish_extra_args -C ' function fish_prompt; printf "prompt $status_generation> <$prompt_var> "; end