mirror of
https://github.com/minetest/minetest.git
synced 2025-01-03 20:07:30 +01:00
Fix broken CI
This commit is contained in:
parent
df8a600b22
commit
bd4572cfd1
@ -200,11 +200,15 @@ end
|
|||||||
if core.settings:get_bool("devtest_unittests_autostart", false) then
|
if core.settings:get_bool("devtest_unittests_autostart", false) then
|
||||||
local test_results = nil
|
local test_results = nil
|
||||||
core.after(0, function()
|
core.after(0, function()
|
||||||
|
-- CI adds a mod which sets `unittests.on_finished`
|
||||||
|
-- to write status information to the filesystem
|
||||||
|
local old_on_finished = unittests.on_finished
|
||||||
unittests.on_finished = function(ok)
|
unittests.on_finished = function(ok)
|
||||||
for _, player in ipairs(minetest.get_connected_players()) do
|
for _, player in ipairs(minetest.get_connected_players()) do
|
||||||
send_results(player:get_player_name(), ok)
|
send_results(player:get_player_name(), ok)
|
||||||
end
|
end
|
||||||
test_results = ok
|
test_results = ok
|
||||||
|
old_on_finished(ok)
|
||||||
end
|
end
|
||||||
coroutine.wrap(unittests.run_all)()
|
coroutine.wrap(unittests.run_all)()
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user