From 599ecc482dc38678b8a478d2c21886ffb8facc41 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 26 Aug 2022 12:50:20 -0300 Subject: luarocks test: add nil check --- src/luarocks/test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) "test_dependencies", } for _, dep_kind in ipairs(all_deps) do - if next(rockspec[dep_kind]) then + if rockspec[dep_kind] and next(rockspec[dep_kind]) then local ok, err, errcode = deps.fulfill_dependencies(rockspec, dep_kind, "all") if err then return nil, err, errcode -- cgit v1.2.3-55-g6feb