aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2019-06-09 16:37:33 +0200
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-06-09 23:40:08 +0200
commitde1313fb06c704a51f675bd3c235e53258f31e73 (patch)
tree4e7a5120d5e53dbdcda7a483afeb94a2599ce94f
parent280149ce60774aab6a75e3f257185b0d6d2b144e (diff)
downloadbuildroot-de1313fb06c704a51f675bd3c235e53258f31e73.tar.gz
buildroot-de1313fb06c704a51f675bd3c235e53258f31e73.tar.bz2
package/luarocks: fix test file creation on br-external
first, add the creation of the needed subdirectories Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--package/luarocks/buildroot.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/luarocks/buildroot.lua b/package/luarocks/buildroot.lua
index 39f0fe759e..35223c1192 100644
--- a/package/luarocks/buildroot.lua
+++ b/package/luarocks/buildroot.lua
@@ -400,6 +400,8 @@ function buildroot.command(flags, rockname, fsname)
generate_mk(rockspec, fsname:lower(), licenses)
generate_hash(rockspec, fsname:lower(), rock_file, licenses, digest)
if has_c_files(rockspec) then
+ ok, err = fs.make_dir('support/testing/tests/package')
+ if not ok then return nil, err end
generate_test(rockspec, fsname:lower())
end