diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-19 18:10:34 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-20 03:51:08 -0300 |
commit | faa7c7560645fde443ad022214c0bb1fbea6953f (patch) | |
tree | 0fe100f1bed863dd0710a150b932d48601069fcb /spec | |
parent | 444d8301ae07129a531f55994aeec10efaedfa1b (diff) | |
download | luarocks-faa7c7560645fde443ad022214c0bb1fbea6953f.tar.gz luarocks-faa7c7560645fde443ad022214c0bb1fbea6953f.tar.bz2 luarocks-faa7c7560645fde443ad022214c0bb1fbea6953f.zip |
improve and simplify Lua interpreter search
* do not proceed with commands if interpreter is not found
* begin retiring LUA_DIR and LUA_BINDIR, and promote LUA as
the main way to setup the interpreter location (from which
we derive the rest)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/cmd_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/cmd_spec.lua b/spec/cmd_spec.lua index fe27ab1b..5d6e729b 100644 --- a/spec/cmd_spec.lua +++ b/spec/cmd_spec.lua | |||
@@ -60,7 +60,7 @@ describe("LuaRocks command line #integration", function() | |||
60 | 60 | ||
61 | it("warns but continues if given an invalid version", function() | 61 | it("warns but continues if given an invalid version", function() |
62 | local output = run.luarocks("--lua-version=1.0") | 62 | local output = run.luarocks("--lua-version=1.0") |
63 | assert.match("Warning: Lua 1.0 interpreter not found", output, 1, true) | 63 | assert.match("LUA *: %(not found%)", output) |
64 | assert.match("Version%s*:%s*1.0", output) | 64 | assert.match("Version%s*:%s*1.0", output) |
65 | end) | 65 | end) |
66 | 66 | ||