From 8641e3a1567aa86f73ad3f357ad114b7a393abce Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 6 Jul 2016 09:11:26 -0400 Subject: test: TUI colors: Skip TERM=linux on non-linux. (#5015) Also skip TERM=screen (GNU, so probably not common on BSD) --- test/functional/terminal/tui_spec.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 4bae9a8d02..e6586c7892 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -306,6 +306,7 @@ end) -- does not initialize the TUI. describe("tui 't_Co' (terminal colors)", function() local screen + local is_linux = (helpers.eval("system('uname') =~? 'linux'") == 1) local function assert_term_colors(term, colorterm, maxcolors) helpers.clear({env={TERM=term}, args={}}) @@ -338,11 +339,19 @@ describe("tui 't_Co' (terminal colors)", function() end) it("TERM=linux uses 8 colors", function() - assert_term_colors("linux", nil, 8) + if is_linux then + assert_term_colors("linux", nil, 8) + else + pending() + end end) it("TERM=screen uses 8 colors", function() - assert_term_colors("screen", nil, 8) + if is_linux then + assert_term_colors("screen", nil, 8) + else + pending() + end end) it("TERM=screen COLORTERM=screen-256color uses 256 colors", function() -- cgit