calog/tests/runner/whoami.lua
2026-10-15 17:45:12 -05:00

9 lines
495 B
Lua

-- testRunner: calogScript() and calogArgs() in a script the runner launched by an extensionless
-- name, and calogScript() in a task it spawns (which no file started). Ends the run once the task
-- and the run's other script have printed.
calogPrint("lua " .. calogScript() .. " " .. table.concat(calogArgs(), ","))
taskSpawn("lua", "calogPrint('task [' .. calogScript() .. ']')\nkvSet('taskDone', true)")
while not (kvGet("taskDone") and kvGet("jsDone")) do
timeSleep(10)
end
calogExit(0)