diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-09-19 10:32:03 -0700 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-16 17:15:06 -0300 |
commit | ab5b1380c1717c22c9d6188b334e8a93c877be57 (patch) | |
tree | 7dc027994019f6b3f6b26e4daf86422e1ae0fcce /spec | |
parent | 8757ab5a663accbd139c9cf10c4878ecd82e3f05 (diff) | |
download | luarocks-ab5b1380c1717c22c9d6188b334e8a93c877be57.tar.gz luarocks-ab5b1380c1717c22c9d6188b334e8a93c877be57.tar.bz2 luarocks-ab5b1380c1717c22c9d6188b334e8a93c877be57.zip |
fs.unix: fallback for when $USER variable is unset
Also, declare Unix version of current_user in
luarocks.fs.unix.tools, so that the pure-Lua version
based on LuaPosix takes precedence when available.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/install_spec.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua index 24dbdb30..1154e9b9 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua | |||
@@ -54,7 +54,9 @@ describe("luarocks install #integration", function() | |||
54 | end) | 54 | end) |
55 | 55 | ||
56 | it("fails with local flag as root #unix", function() | 56 | it("fails with local flag as root #unix", function() |
57 | assert.is_false(run.luarocks_bool("install --local luasocket ", { USER = "root" } )) | 57 | if test_env.TYPE_TEST_ENV ~= "full" then |
58 | assert.is_false(run.luarocks_bool("install --local luasocket ", { USER = "root" } )) | ||
59 | end | ||
58 | end) | 60 | end) |
59 | 61 | ||
60 | it("fails with no downloader", function() | 62 | it("fails with no downloader", function() |