Skip to content

Commit a9f75bf

Browse files
committed
test: Set JULIA_TESTS to suppress precompilation output in subprocesses
In v1.12.1, precompilation output was only suppressed when the JULIA_TESTS environment variable was set. While Base.runtests() sets this variable for the main test process, subprocesses spawned by individual tests (e.g., in test/precompile.jl) did not inherit it, causing unexpected precompilation progress messages in stderr. This minimal fix sets JULIA_TESTS="true" in test/runtests.jl so that all test subprocesses inherit the variable and properly suppress precompilation output. Fixes #59887
1 parent ca9b666 commit a9f75bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ include("buildkitetestjson.jl")
1515

1616
using .BuildkiteTestJSON
1717

18+
# Set JULIA_TESTS so that precompilation output is suppressed in test subprocesses
19+
ENV["JULIA_TESTS"] = "true"
20+
1821
const longrunning_delay = parse(Int, get(ENV, "JULIA_TEST_LONGRUNNING_DELAY", "45")) * 60 # minutes
1922
const longrunning_interval = parse(Int, get(ENV, "JULIA_TEST_LONGRUNNING_INTERVAL", "15")) * 60 # minutes
2023

0 commit comments

Comments
 (0)