diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-20 13:43:44 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-23 20:47:09 -0300 |
| commit | 2c4ff5240bf298fec07749f5984de2f08b8736ec (patch) | |
| tree | f0b4dfec401fa1a132fc5786467fb8683d17bdcb /spec/build_spec.lua | |
| parent | 79bd1739d8ca004ddd0b2fa5e24da4a6f4b776fa (diff) | |
| download | luarocks-2c4ff5240bf298fec07749f5984de2f08b8736ec.tar.gz luarocks-2c4ff5240bf298fec07749f5984de2f08b8736ec.tar.bz2 luarocks-2c4ff5240bf298fec07749f5984de2f08b8736ec.zip | |
fix: better normalization for paths and slashes
Fixes #1195.
Diffstat (limited to 'spec/build_spec.lua')
| -rw-r--r-- | spec/build_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index 5e78aa4f..0a270ec4 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
| @@ -5,6 +5,7 @@ local run = test_env.run | |||
| 5 | local testing_paths = test_env.testing_paths | 5 | local testing_paths = test_env.testing_paths |
| 6 | local write_file = test_env.write_file | 6 | local write_file = test_env.write_file |
| 7 | local git_repo = require("spec.util.git_repo") | 7 | local git_repo = require("spec.util.git_repo") |
| 8 | local P = test_env.P | ||
| 8 | 9 | ||
| 9 | test_env.unload_luarocks() | 10 | test_env.unload_luarocks() |
| 10 | local cfg = require("luarocks.core.cfg") | 11 | local cfg = require("luarocks.core.cfg") |
| @@ -661,7 +662,7 @@ describe("LuaRocks build #unit", function() | |||
| 661 | write_file("bin/binfile", "", finally) | 662 | write_file("bin/binfile", "", finally) |
| 662 | 663 | ||
| 663 | local _, install, copy_directories = build_builtin.autodetect_modules({}, {}, {}) | 664 | local _, install, copy_directories = build_builtin.autodetect_modules({}, {}, {}) |
| 664 | assert.same(install, { bin = { "bin/binfile" } }) | 665 | assert.same(install, { bin = { P"bin/binfile" } }) |
| 665 | assert.same(copy_directories, { "doc", "docs", "samples", "tests" }) | 666 | assert.same(copy_directories, { "doc", "docs", "samples", "tests" }) |
| 666 | 667 | ||
| 667 | lfs.rmdir("doc") | 668 | lfs.rmdir("doc") |
