fix health and hl groups
This commit is contained in:
parent
d35ed0450b
commit
5991670ef2
4 changed files with 22 additions and 13 deletions
|
|
@ -93,7 +93,7 @@ local function parse_and_strip_time_v(output)
|
|||
for line in tail:gmatch('[^\n]+') do
|
||||
local kb = line:match('Maximum resident set size %(kbytes%):%s*(%d+)')
|
||||
if kb then
|
||||
peak_kb = tonumber(kb)
|
||||
peak_kb = tonumber(kb) or 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ function M.get_status_info(ran_test_case)
|
|||
return { text = 'WA', highlight_group = 'CpTestWA' }
|
||||
end
|
||||
|
||||
return { text = 'N/A', highlight_group = 'CpTestPending' }
|
||||
return { text = 'N/A', highlight_group = 'CpTestNA' }
|
||||
end
|
||||
|
||||
local function format_exit_code(code)
|
||||
|
|
@ -354,7 +354,7 @@ function M.get_highlight_groups()
|
|||
CpTestTLE = { fg = '#f59e0b' },
|
||||
CpTestMLE = { fg = '#f59e0b' },
|
||||
CpTestRTE = { fg = '#8b5cf6' },
|
||||
CpTestPending = { fg = '#6b7280' },
|
||||
CpTestNA = { fg = '#6b7280' },
|
||||
CpDiffRemoved = { fg = '#ef4444', bg = '#1f1f1f' },
|
||||
CpDiffAdded = { fg = '#10b981', bg = '#1f1f1f' },
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue