diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-08-26 12:50:20 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-08-26 17:00:57 -0300 |
commit | 599ecc482dc38678b8a478d2c21886ffb8facc41 (patch) | |
tree | d0ad54dd36a1f6fed584d9e870072d2d99694799 | |
parent | c41e1ca11fe1766451a0ccfa0767b8105350ad28 (diff) | |
download | luarocks-599ecc482dc38678b8a478d2c21886ffb8facc41.tar.gz luarocks-599ecc482dc38678b8a478d2c21886ffb8facc41.tar.bz2 luarocks-599ecc482dc38678b8a478d2c21886ffb8facc41.zip |
luarocks test: add nil check
-rw-r--r-- | src/luarocks/test.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/test.lua b/src/luarocks/test.lua index 23ce3b59..2a836671 100644 --- a/src/luarocks/test.lua +++ b/src/luarocks/test.lua | |||
@@ -62,7 +62,7 @@ function test.run_test_suite(rockspec_arg, test_type, args, prepare) | |||
62 | "test_dependencies", | 62 | "test_dependencies", |
63 | } | 63 | } |
64 | for _, dep_kind in ipairs(all_deps) do | 64 | for _, dep_kind in ipairs(all_deps) do |
65 | if next(rockspec[dep_kind]) then | 65 | if rockspec[dep_kind] and next(rockspec[dep_kind]) then |
66 | local ok, err, errcode = deps.fulfill_dependencies(rockspec, dep_kind, "all") | 66 | local ok, err, errcode = deps.fulfill_dependencies(rockspec, dep_kind, "all") |
67 | if err then | 67 | if err then |
68 | return nil, err, errcode | 68 | return nil, err, errcode |