Skip to content

Commit e290463

Browse files
committed
Save stdout/err of tests with colors
1 parent 3aac7bb commit e290463

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ParallelTestRunner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function runtest(f, name, init_code, color)
258258
take!(pipe_initialized)
259259
read(pipe, String)
260260
end
261-
stats = redirect_stdio(stdout=pipe, stderr=pipe) do
261+
stats = redirect_stdio(; stdout=IOContext(pipe, :color=>$(color)), stderr=IOContext(pipe, :color=>$(color))) do
262262
put!(pipe_initialized, nothing)
263263

264264
# @testset CustomTestRecord switches the all lower-level testset to our custom testset,

0 commit comments

Comments
 (0)