Skip to content

Commit 7871edd

Browse files
committed
fix test file writing
1 parent 54a1fa6 commit 7871edd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/main.lua

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
local args = {...}
22
local done_command = args[1]
33

4-
function set_test_stage(stage)
5-
local f = io.open('test_stage.txt', 'w')
6-
f:write(stage)
7-
f:close()
8-
end
9-
104
print('Running tests')
115

126
local status = dfhack.run_command('ai', 'validate')
@@ -16,7 +10,9 @@ else
1610
dfhack.printerr('test errored: df-ai:validate: status=' .. tostring(status))
1711
end
1812

19-
set_test_stage('done')
13+
local f = io.open('test_status.json', 'w')
14+
f:write('{"ai":"passed"}')
15+
f:close()
2016
if done_command then
2117
dfhack.run_command(done_command)
2218
end

0 commit comments

Comments
 (0)