aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2022-08-26 12:50:20 -0300
committerHisham Muhammad <hisham@gobolinux.org>2022-08-26 17:00:57 -0300
commit599ecc482dc38678b8a478d2c21886ffb8facc41 (patch)
treed0ad54dd36a1f6fed584d9e870072d2d99694799
parentc41e1ca11fe1766451a0ccfa0767b8105350ad28 (diff)
downloadluarocks-599ecc482dc38678b8a478d2c21886ffb8facc41.tar.gz
luarocks-599ecc482dc38678b8a478d2c21886ffb8facc41.tar.bz2
luarocks-599ecc482dc38678b8a478d2c21886ffb8facc41.zip
luarocks test: add nil check
-rw-r--r--src/luarocks/test.lua2
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