Skip to content

Commit 95f54c4

Browse files
authored
fix InteractiveUtils call in Base.runtests on failure (#53525)
Noticed in CI that `Base.runtests(["fail"])` fails here instead of throwing the correct error later, since #53326.
1 parent 2501e37 commit 95f54c4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

base/util.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,11 +694,9 @@ function runtests(tests = ["all"]; ncores::Int = ceil(Int, Sys.CPU_THREADS / 2),
694694
nothing
695695
catch
696696
buf = PipeBuffer()
697-
original_load_path = copy(Base.LOAD_PATH); empty!(Base.LOAD_PATH); pushfirst!(Base.LOAD_PATH, "@stdlib")
698-
let InteractiveUtils = Base.require_stdlib(Base, :InteractiveUtils)
697+
let InteractiveUtils = Base.require_stdlib(PkgId(UUID(0xb77e0a4c_d291_57a0_90e8_8db25a27a240), "InteractiveUtils"))
699698
@invokelatest InteractiveUtils.versioninfo(buf)
700699
end
701-
empty!(Base.LOAD_PATH); append!(Base.LOAD_PATH, original_load_path)
702700
error("A test has failed. Please submit a bug report (https://github.com/JuliaLang/julia/issues)\n" *
703701
"including error messages above and the output of versioninfo():\n$(read(buf, String))")
704702
end

0 commit comments

Comments
 (0)