Colorize build test results similar to RSpec tests

This commit is contained in:
Josh Holtrop 2026-01-28 07:56:36 -05:00
parent e6317ae236
commit 72d2802d1e

View File

@ -260,9 +260,9 @@ def run_tests
pipew.close
test.output = piper.read
if test.output.start_with?("<pass>")
$stdout.write(".")
Rscons::Ansi.write($stdout, :green, ".", :reset)
else
$stdout.write("F\n")
Rscons::Ansi.write($stdout, :red, "F", :reset, "\n")
$stderr.write(test.output)
failure = true
end