Skip to content

Commit b685edd

Browse files
authored
Test system: Allow the "test set mutated ENV and did not restore..." check to be turned off (#47148)
1 parent 0b2a8a5 commit b685edd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/testdefs.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ function runtests(name, path, isolate=true; seed=nothing)
5757
testset_name = name,
5858
testset_path = path,
5959
)
60-
error(msg)
60+
throw_error_str = get(ENV, "JULIA_TEST_CHECK_MUTATED_ENV", "true")
61+
throw_error_b = parse(Bool, throw_error_str)
62+
if throw_error_b
63+
error(msg)
64+
end
6165
end
6266
end
6367
rss = Sys.maxrss()

0 commit comments

Comments
 (0)