ソースを参照

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>
Francois Perrad 6 年 前
コミット
de1313fb06
1 ファイル変更2 行追加0 行削除
  1. 2 0
      package/luarocks/buildroot.lua

+ 2 - 0
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