Skip to content

Commit

Permalink
Remove TAP error workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed Nov 6, 2023
1 parent c9e9048 commit 69a5a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
20 changes: 1 addition & 19 deletions lua/vusted/run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,7 @@ return function()

local code = 0
if not ok then
-- workaround: unitl next busted release
local normalized = result:gsub([[\]], [[/]])
if
normalized:find([[busted/outputHandlers/TAP.lua]])
and normalized:find([[attempt to concatenate field 'currentline' %(a nil value%)]])
then
print([[
# Failure message: Cannot find file or directory: spec
not ok 2 -
# Failure message: No test files found matching Lua pattern: _spec
1..2
# Success: 0
# Error: 2
]])
else
print(result .. "\n")
end

print(result .. "\n")
code = 1
end
os.exit(code)
Expand Down
2 changes: 1 addition & 1 deletion rockspec/vusted-x.x.x-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description = {
license = "MIT <http://opensource.org/licenses/MIT>"
}
dependencies = {
"busted >= 2.0.0"
"busted >= 2.2.0"
}
build = {
type = "builtin",
Expand Down

0 comments on commit 69a5a5f

Please sign in to comment.