Hook setTextColor in tests, so on linux/mac we don't get random color changes but no output.
hooks.os_writefile_ifnotequal = os.writefile_ifnotequal
hooks.p_utf8 = p.utf8
hooks.print = print
+ hooks.setTextColor = term.setTextColor
local mt = getmetatable(io.stderr)
_.builtin_write = mt.write
os.writefile_ifnotequal = _.stub_os_writefile_ifnotequal
print = _.stub_print
p.utf8 = _.stub_utf8
+ term.setTextColor = _.stub_setTextColor
stderr_capture = nil
os.writefile_ifnotequal = hooks.os_writefile_ifnotequal
p.utf8 = hooks.p_utf8
print = hooks.print
+ term.setTextColor = hooks.setTextColor
local mt = getmetatable(io.stderr)
mt.write = _.builtin_write
function _.stub_utf8()
end
+
+
+ function _.stub_setTextColor()
+ end
