test: simplify helpers.sysname()

This commit is contained in:
Lewis Russell 2024-01-15 20:04:38 +00:00
parent 26835d8d9c
commit d735567fda

View File

@ -369,10 +369,7 @@ function module.check_logs()
end
function module.sysname()
local platform = uv.os_uname()
if platform and platform.sysname then
return platform.sysname:lower()
end
return uv.os_uname().sysname:lower()
end
function module.is_os(s)