Fixed exploded tests to work with busted 2.0

This commit is contained in:
mpeterv
2014-08-01 17:44:15 +04:00
parent d1386c1d96
commit 59603d5f39
13 changed files with 13 additions and 8 deletions

View File

@@ -941,12 +941,8 @@ function Parser:_parse(args, errhandler)
end
function Parser:error(msg)
if _TEST then
error(msg)
else
io.stderr:write(("%s\r\n\r\nError: %s\r\n"):format(self:get_usage(), msg))
os.exit(1)
end
io.stderr:write(("%s\r\n\r\nError: %s\r\n"):format(self:get_usage(), msg))
os.exit(1)
end
function Parser:parse(args)