diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-09-02 11:35:33 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-09-05 15:01:06 +0200 |
commit | f9af82483253ea1b7d1698ed0e1c6c4810518a36 (patch) | |
tree | c628c50f2d78ac6cb2a92c60a30825322d31099d | |
parent | d30abd8857a41f439de01f8c0e6d1075acf124d9 (diff) | |
download | rneovim-f9af82483253ea1b7d1698ed0e1c6c4810518a36.tar.gz rneovim-f9af82483253ea1b7d1698ed0e1c6c4810518a36.tar.bz2 rneovim-f9af82483253ea1b7d1698ed0e1c6c4810518a36.zip |
test: use global_helpers.uname() instead of calling to nvim UUT
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 34a5ac0a49..d139d03548 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -1,5 +1,6 @@ --- Some sanity checks for the TUI using the builtin terminal emulator --- as a simple way to send keys and assert screen state. +-- Acceptance tests for the TUI using the builtin terminal emulator as +-- a way to send keys and assert screen state. +local global_helpers = require('test.helpers') local helpers = require('test.functional.helpers')(after_each) local thelpers = require('test.functional.terminal.helpers') local feed_data = thelpers.feed_data @@ -317,7 +318,7 @@ end) -- does not initialize the TUI. describe("tui 't_Co' (terminal colors)", function() local screen - local is_freebsd = (helpers.eval("system('uname') =~? 'FreeBSD'") == 1) + local is_freebsd = (string.lower(global_helpers.uname()) == 'freebsd') local function assert_term_colors(term, colorterm, maxcolors) helpers.clear({env={TERM=term}, args={}}) |