Skip to content

Commit d685930

Browse files
committed
dont test cross platform
1 parent 282ac2d commit d685930

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

test.lua

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,21 @@ local function main()
7979

8080
log.print = true
8181

82-
for _, os in ipairs {'Windows', 'Linux', 'macOS'} do
83-
require 'bee.platform'.OS = os
84-
---@async
85-
lclient():start(function (client)
86-
client:registerFakers()
87-
client:initialize()
88-
89-
ws.awaitReady()
90-
91-
print('Loaded files in', os)
92-
for uri in files.eachFile() do
93-
print(uri)
94-
end
95-
print('===============')
96-
97-
testAll()
98-
end)
99-
end
82+
---@async
83+
lclient():start(function (client)
84+
client:registerFakers()
85+
client:initialize()
86+
87+
ws.awaitReady()
88+
89+
print('Loaded files in', os)
90+
for uri in files.eachFile() do
91+
print(uri)
92+
end
93+
print('===============')
94+
95+
testAll()
96+
end)
10097

10198
test 'tclient'
10299
test 'full'

test/crossfile/definition.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,8 @@ TEST {
688688
}
689689
}
690690

691-
local originOS = platform.OS
692-
platform.OS = 'Linux'
691+
692+
if platform.OS == 'Linux' then
693693

694694
TEST {
695695
{
@@ -742,7 +742,8 @@ TEST {
742742
]]
743743
}
744744
}
745-
platform.OS = originOS
745+
746+
end
746747

747748
local originRuntimePath = config.get(nil, 'Lua.runtime.path')
748749
config.set(nil, 'Lua.runtime.path', {

0 commit comments

Comments
 (0)