Skip to content

Commit

Permalink
Clean up globals
Browse files Browse the repository at this point in the history
  • Loading branch information
ajacksified committed Aug 15, 2014
1 parent 6510e55 commit 75c19a8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/busted
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ local outputHandlerOptions = {
deferPrint = cliArgs['defer-print']
}

outputHandler = outputHandlerLoader(cliArgs.output, cliArgs.o, outputHandlerOptions, busted)
local outputHandler = outputHandlerLoader(cliArgs.output, cliArgs.o, outputHandlerOptions, busted)
outputHandler:subscribe(outputHandlerOptions)

if cliArgs.s then
Expand Down
2 changes: 1 addition & 1 deletion busted/modules/files/lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end


ret.load = function(busted, filename)
local file
local file, err

local success, err = pcall(function()
file, err = loadfile(filename)
Expand Down
1 change: 0 additions & 1 deletion busted/outputHandlers/TAP.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ return function(options, busted)
while parent and (parent.name or parent.descriptor) and
parent.descriptor ~= 'file' do

current_context = context.parent
table.insert(names, 1, parent.name or parent.descriptor)
parent = busted.context.parent(parent)
end
Expand Down
4 changes: 0 additions & 4 deletions busted/outputHandlers/junit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ return function(options, busted)
end

handler.error = function(element, parent, message, trace)
if status == 'failure' then
node.attr.errors = node.attr.errors + 1
end

node:addtag('failure', {
message = message
}):text(trace.traceback):up()
Expand Down

0 comments on commit 75c19a8

Please sign in to comment.