diff options
author | cos <cos> | 2024-07-28 08:51:27 +0200 |
---|---|---|
committer | cos <cos> | 2024-07-28 09:08:58 +0200 |
commit | 4ebe158c1947f8e4ba0d05dbe5c9ad9d7ee323bf (patch) | |
tree | 237d2cc4ebdb9c4d8ad26887fabd7cd6e3b17f03 | |
parent | 9e13874b5eb4e0537f26a1fd78f918ce3f184e99 (diff) | |
download | luasystem-4ebe158c1947f8e4ba0d05dbe5c9ad9d7ee323bf.zip |
Make tests work with FreeBSD
There is no executable named lua in freebsd-ports, but only executables
with a version suffix. This commit makes it possible to get the tests
to pass by setting the environment variable LUA. E.g. to the value
suggested by `luarocks54 config`.
-rw-r--r-- | spec/04-term_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/04-term_spec.lua b/spec/04-term_spec.lua index 57fb4d0..813947a 100644 --- a/spec/04-term_spec.lua +++ b/spec/04-term_spec.lua @@ -27,7 +27,8 @@ describe("Terminal:", function() assert(type(serr) == "boolean", "serr must be a boolean") local tmpfile = "./spec/04-term_helper.output" - local execcmd = "lua ./spec/04-term_helper.lua -- " .. tmpfile + local lua_bin = system.getenv("LUA") or "lua" + local execcmd = lua_bin .. " ./spec/04-term_helper.lua -- " .. tmpfile sin = sin and "" or 'echo "hello" | ' if system.windows then |