Skip to content

Commit

Permalink
Actually fixed cli test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Mar 11, 2014
1 parent d3fdaa9 commit a2fb90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/cli_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ end

local function get_exitcode(command)
local code51, _, code52 = os.execute("luacheck "..command)
return _VERSION:find "5.1" and code51 or code52
return _VERSION:find "5.1" and code51/256 or code52
end

describe("test luacheck cli", function()
Expand Down

0 comments on commit a2fb90f

Please sign in to comment.