package/luarocks: fix test file creation on br-external
authorFrancois Perrad <fperrad@gmail.com>
Sun, 9 Jun 2019 14:37:33 +0000 (16:37 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 9 Jun 2019 21:40:08 +0000 (23:40 +0200)
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>
package/luarocks/buildroot.lua

index 39f0fe759e6c32ed3bcc24fc72b8217d9f3bc7a9..35223c11925130d9e880a9c812655e0d73b022d5 100644 (file)
@@ -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