diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-02-16 18:10:39 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 18:10:39 -0300 |
commit | 48babcc745639f417c87c08cbaf989b9f0e7fc01 (patch) | |
tree | 266a1c4a593b08a3394695f4b1eda9e49c9f5e8f /spec | |
parent | e31102e8c9de467fa21e3f73c74c6a782648b2a5 (diff) | |
download | luarocks-48babcc745639f417c87c08cbaf989b9f0e7fc01.tar.gz luarocks-48babcc745639f417c87c08cbaf989b9f0e7fc01.tar.bz2 luarocks-48babcc745639f417c87c08cbaf989b9f0e7fc01.zip |
fix deployment on non-wrapped binaries (#1375)
* fix deployment on non-wrapped binaries
Fixes #1374.
* Do not add .bat extension inside win32.wrap_script
Diffstat (limited to 'spec')
-rw-r--r-- | spec/fs_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/fs_spec.lua b/spec/fs_spec.lua index 5410cff7..cd6e5c13 100644 --- a/spec/fs_spec.lua +++ b/spec/fs_spec.lua | |||
@@ -1476,9 +1476,9 @@ describe("luarocks.fs #unit", function() | |||
1476 | it("produces a wrapper for a Lua script", function() | 1476 | it("produces a wrapper for a Lua script", function() |
1477 | write_file("my_script", "io.write('Hello ' .. arg[1])", finally) | 1477 | write_file("my_script", "io.write('Hello ' .. arg[1])", finally) |
1478 | path.use_tree(testing_paths.testing_tree) | 1478 | path.use_tree(testing_paths.testing_tree) |
1479 | local wrapper_name = fs.absolute_name("wrapper") | 1479 | local wrapper_name = fs.absolute_name("wrapper") .. test_env.wrapper_extension |
1480 | fs.wrap_script("my_script", wrapper_name, "one", nil, nil, "World") | 1480 | fs.wrap_script("my_script", wrapper_name, "one", nil, nil, "World") |
1481 | local pd = assert(io.popen(wrapper_name .. test_env.wrapper_extension)) | 1481 | local pd = assert(io.popen(wrapper_name)) |
1482 | local data = pd:read("*a") | 1482 | local data = pd:read("*a") |
1483 | pd:close() | 1483 | pd:close() |
1484 | assert.same("Hello World", data) | 1484 | assert.same("Hello World", data) |