Skip to content

Commit 0b8f877

Browse files
Kenoclaude
authored andcommitted
[release-1.12] Fix precompilation tests when run from runtests.jl (#60201)
`precompilation` has a test for the JULIA_TESTS env var that is required to get tests to work. On master, the check was removed in 42a33bb, but on 1.12 it is there and causing problems. Since this is fixed on master, I think the simplest fix is just to set JULIA_TESTS in runtests.jl also on 1.12 to avoid having to mess with the precompilation code itself. Fixes #59887 Co-authored-by: Claude <noreply@anthropic.com>
1 parent a3f0bfd commit 0b8f877

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)