Skip to content

Commit 6eaa782

Browse files
authored
FIX: disable forced ModCache regen for tests (#6694)
1 parent 398b20b commit 6eaa782

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HeadlessWrapper.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ dofile("Launch.lua")
169169
-- Prevents loading of ModCache
170170
-- Allows running mod parsing related tests without pushing ModCache
171171
-- The CI env var will be true when run from github workflows but should be false for other tools using the headless wrapper
172-
mainObject.continuousIntegrationMode = os.getenv("CI")
172+
mainObject.continuousIntegrationMode = os.getenv("CI")
173173

174174
runCallback("OnInit")
175175
runCallback("OnFrame") -- Need at least one frame for everything to initialise

src/Modules/Main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function main:Init()
6565
-- If modLib.parseMod doesn't find a cache entry it generates it.
6666
-- Not loading pre-generated cache causes it to be rebuilt
6767
self.saveNewModCache = true
68-
elseif not launch.continuousIntegrationMode then -- Forces regeneration of modCache if ran from CI
68+
else
6969
-- Load mod cache
7070
LoadModule("Data/ModCache", modLib.parseModCache)
7171
end

0 commit comments

Comments
 (0)