1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 12:29:03 +00:00

Make lib load errors into unittest failures.

This commit is contained in:
dmiller
2023-05-01 17:44:40 +00:00
parent b323270b7d
commit b8fd19c8d9

View File

@@ -191,7 +191,7 @@ run_tests = function(to_test)
stdnse.debug1("Testing %s", lib)
local status, thelib = pcall(require, lib)
if not status then
stdnse.debug1("Failed to load %s: %s", lib, thelib)
fails[lib] = ("Failed to load: %s"):format(thelib)
else
local failed = 0
if rawget(thelib,"test_suite") ~= nil then