aboutsummaryrefslogtreecommitdiff
path: root/spec/build_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r--spec/build_spec.lua3
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
5local testing_paths = test_env.testing_paths 5local testing_paths = test_env.testing_paths
6local write_file = test_env.write_file 6local write_file = test_env.write_file
7local git_repo = require("spec.util.git_repo") 7local git_repo = require("spec.util.git_repo")
8local P = test_env.P
8 9
9test_env.unload_luarocks() 10test_env.unload_luarocks()
10local cfg = require("luarocks.core.cfg") 11local 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")