Skip to content

Commit

Permalink
fix Win tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Apr 2, 2024
1 parent 64c2e8b commit 8778b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/path_spec.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

-- conditional it/pending blocks per platform
local function nix_it(desc, ...)
if package.path:sub(1,1) == "\\" then
if package.config:sub(1,1) == "\\" then
pending("Skip test on Windows: " .. desc, ...)
else
it(desc, ...)
end
end
local function win_it(desc, ...)
if package.path:sub(1,1) == "\\" then
if package.config:sub(1,1) == "\\" then
it(desc, ...)
else
pending("Skip test on Unix: " .. desc, ...)
Expand Down

0 comments on commit 8778b4e

Please sign in to comment.