Merge pull request #12802 from jamessan/travis-ubuntu-bump

This commit is contained in:
James McCoy
2020-09-06 12:52:37 -04:00
committed by GitHub
6 changed files with 41 additions and 13 deletions

View File

@@ -200,14 +200,25 @@ function module.check_logs()
end
end
fd:close()
os.remove(file)
if #lines > 0 then
local status, f
local out = io.stdout
if os.getenv('SYMBOLIZER') then
status, f = pcall(module.popen_r, os.getenv('SYMBOLIZER'), '-l', file)
end
out:write(start_msg .. '\n')
out:write('= ' .. table.concat(lines, '\n= ') .. '\n')
if status then
for line in f:lines() do
out:write('= '..line..'\n')
end
f:close()
else
out:write('= ' .. table.concat(lines, '\n= ') .. '\n')
end
out:write(select(1, start_msg:gsub('.', '=')) .. '\n')
table.insert(runtime_errors, file)
end
os.remove(file)
end
end
end