aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2015-02-09 06:13:47 -0500
committerJohn Szakmeister <john@szakmeister.net>2015-02-09 06:13:47 -0500
commitc5d54c50dc0e52a6e8eed28ef22b1b189048d816 (patch)
tree5c29bd3c64f2dfc421e2966badc22a556658ea7e /test
parent7ab0fcdd945eaa157004ccee2949c680deff439e (diff)
downloadrneovim-c5d54c50dc0e52a6e8eed28ef22b1b189048d816.tar.gz
rneovim-c5d54c50dc0e52a6e8eed28ef22b1b189048d816.tar.bz2
rneovim-c5d54c50dc0e52a6e8eed28ef22b1b189048d816.zip
Get rid of a bashism in the fs_spec test.
FreeBSD doesn't use bash by default, causing the group id to be print out in the middle of the test.
Diffstat (limited to 'test')
-rw-r--r--test/unit/os/fs_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua
index 90f5a0b7de..7051ed3797 100644
--- a/test/unit/os/fs_spec.lua
+++ b/test/unit/os/fs_spec.lua
@@ -262,7 +262,7 @@ describe('fs function', function()
it('owner of a file may change the group of the file to any group of which that owner is a member', function()
-- Some systems may not have `id` utility.
- if (os.execute('id -G &> /dev/null') == 0) then
+ if (os.execute('id -G > /dev/null 2>&1') == 0) then
local file_gid = lfs.attributes(filename, 'gid')
-- Gets ID of any group of which current user is a member except the