mirror of
https://github.com/nmap/nmap.git
synced 2026-09-09 05:05:48 +00:00
Make lib load errors into unittest failures.
This commit is contained in:
parent
b323270b7d
commit
b8fd19c8d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue