diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-01 21:21:26 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-01 22:49:33 -0700 |
commit | ead39d6ce6d1c5e5b6130c6823d071889c207bde (patch) | |
tree | 0a1b0b8707e6a951e3318bfbba80a1764749a2dd /test/functional/terminal/tui_spec.lua | |
parent | 7d2090772488e9d57532c2f3d72438370027d3b9 (diff) | |
download | rneovim-ead39d6ce6d1c5e5b6130c6823d071889c207bde.tar.gz rneovim-ead39d6ce6d1c5e5b6130c6823d071889c207bde.tar.bz2 rneovim-ead39d6ce6d1c5e5b6130c6823d071889c207bde.zip |
test/uname(): always lowercase
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 01e13ce4d4..99b25cbf48 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -902,7 +902,7 @@ end) -- does not initialize the TUI. describe("TUI 't_Co' (terminal colors)", function() local screen - local is_freebsd = (string.lower(uname()) == 'freebsd') + local is_freebsd = (uname() == 'freebsd') local function assert_term_colors(term, colorterm, maxcolors) helpers.clear({env={TERM=term}, args={}}) @@ -1176,8 +1176,8 @@ end) -- does not initialize the TUI. describe("TUI 'term' option", function() local screen - local is_bsd = not not string.find(string.lower(uname()), 'bsd') - local is_macos = not not string.find(string.lower(uname()), 'darwin') + local is_bsd = not not string.find(uname(), 'bsd') + local is_macos = not not string.find(uname(), 'darwin') local function assert_term(term_envvar, term_expected) clear() @@ -1203,7 +1203,7 @@ describe("TUI 'term' option", function() end) it('gets system-provided term if $TERM is valid', function() - if string.lower(uname()) == "openbsd" then + if uname() == "openbsd" then assert_term("xterm", "xterm") elseif is_bsd then -- BSD lacks terminfo, builtin is always used. assert_term("xterm", "builtin_xterm") |