Fix Windows mpv logging and add log export (#88)

This commit is contained in:
2026-05-26 00:31:38 -07:00
committed by GitHub
parent 43ebc7d371
commit 11c196821d
150 changed files with 2748 additions and 582 deletions
+16
View File
@@ -547,6 +547,15 @@ local function has_osd_message(messages, target)
return false
end
local function has_log_containing(logs, target)
for _, message in ipairs(logs) do
if type(message) == "string" and message:find(target, 1, true) then
return true
end
end
return false
end
local function count_osd_message(messages, target)
local count = 0
for _, message in ipairs(messages) do
@@ -2169,6 +2178,13 @@ do
not has_property_set(recorded.property_sets, "pause", true),
"pause-until-ready gate should not arm when socket_path does not match"
)
assert_true(
has_log_containing(
recorded.logs,
"Skipping auto-start: input-ipc-server does not match configured socket_path (expected=/tmp/subminer-socket; active=/tmp/other.sock; matching=no)"
),
"socket mismatch log should include expected and active ipc sockets"
)
end
do