Skip to content

Commit 406b293

Browse files
Fix or suppress some noisy tests πŸŒοΈβ€β™‚οΈ (#44444)
(cherry picked from commit d971465)
1 parent 885eccf commit 406b293

File tree

17 files changed

+69
-36
lines changed

17 files changed

+69
-36
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
de53629eb0b1ce98ac6b245bdbf14e9d
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
71cdc58b03cc4f42f8c4b9c2353d6f94d77b4ac5c9d374387d435c57ba85e966f3be4e8c8447b34e184cb8e665c42b3cd2c9d9742c86f7fb5c71a85df5087966

β€Ždeps/checksums/SHA-57c3a8c8358021b7a58526364e6885768fd95de2.tar.gz/md5β€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Ždeps/checksums/SHA-57c3a8c8358021b7a58526364e6885768fd95de2.tar.gz/sha512β€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žstdlib/Artifacts/test/refresh_artifacts.jlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ let
1212
if meta isa Array
1313
for meta in meta
1414
get(meta, "lazy", false) && continue
15-
ensure_artifact_installed(name, meta, toml; platform=unused)
15+
ensure_artifact_installed(name, meta, toml; platform=unused, io = devnull)
1616
end
1717
else; meta::Dict
1818
get(meta, "lazy", false) && continue
19-
ensure_artifact_installed(name, meta, toml; platform=unused)
19+
ensure_artifact_installed(name, meta, toml; platform=unused, io = devnull)
2020
end
2121
end
2222
end

β€Žstdlib/LazyArtifacts/test/runtests.jlβ€Ž

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ using Test
55

66
mktempdir() do tempdir
77
LazyArtifacts.Artifacts.with_artifacts_directory(tempdir) do
8-
socrates_dir = artifact"socrates"
9-
@test isdir(socrates_dir)
8+
redirect_stderr(devnull) do
9+
socrates_dir = artifact"socrates"
10+
@test isdir(socrates_dir)
11+
end
1012
ex = @test_throws ErrorException artifact"HelloWorldC"
1113
@test startswith(ex.value.msg, "Artifact \"HelloWorldC\" was not installed correctly. ")
1214
end
@@ -18,10 +20,12 @@ end
1820
using Test
1921
mktempdir() do tempdir
2022
Artifacts.with_artifacts_directory(tempdir) do
21-
socrates_dir = @test_logs(
22-
(:warn, "using Pkg instead of using LazyArtifacts is deprecated"),
23-
artifact"socrates")
24-
@test isdir(socrates_dir)
23+
redirect_stderr(devnull) do
24+
socrates_dir = @test_logs(
25+
(:warn, "using Pkg instead of using LazyArtifacts is deprecated"),
26+
artifact"socrates")
27+
@test isdir(socrates_dir)
28+
end
2529
end
2630
end'`,
2731
dir=@__DIR__)))

β€Žstdlib/LibGit2/test/bad_ca_roots.jlβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ using Test, LibGit2, NetworkOptions
99
# if that changes, this may need to be adjusted
1010
const CAN_SET_CA_ROOTS_PATH = !Sys.isapple() && !Sys.iswindows()
1111

12-
@testset "empty CA roots file" begin
12+
# Given this is a sub-processed test file, not using @testsets avoids
13+
# leaking the report print into the Base test runner report
14+
begin # empty CA roots file
1315
# these fail for different reasons on different platforms:
1416
# - on Apple & Windows you cannot set the CA roots path location
1517
# - on Linux & FreeBSD you you can but these are invalid files
@@ -29,14 +31,14 @@ const CAN_SET_CA_ROOTS_PATH = !Sys.isapple() && !Sys.iswindows()
2931
end
3032

3133
if CAN_SET_CA_ROOTS_PATH
32-
@testset "non-empty but bad CA roots file" begin
34+
begin # non-empty but bad CA roots file
3335
# should still be possible to initialize
3436
ENV["JULIA_SSL_CA_ROOTS_PATH"] = joinpath(@__DIR__, "bad_ca_roots.pem")
3537
@test LibGit2.ensure_initialized() === nothing
3638
end
3739
mktempdir() do dir
3840
repo_url = "https://github.com/JuliaLang/Example.jl"
39-
@testset "HTTPS clone with bad CA roots fails" begin
41+
begin # HTTPS clone with bad CA roots fails
4042
repo_path = joinpath(dir, "Example.HTTPS")
4143
c = LibGit2.CredentialPayload(allow_prompt=false, allow_git_helpers=false)
4244
redirect_stderr(devnull)

β€Žstdlib/REPL/test/repl.jlβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ fake_repl() do stdin_write, stdout_read, repl
751751
@test readuntil(stdout_read, "end", keep=true) == "\n\r\e[7C Ξ±=1\n\r\e[7C Ξ²=2\n\r\e[7Cend"
752752

753753
# Test switching repl modes
754+
redirect_stdout(devnull) do # to suppress "foo" echoes
754755
sendrepl2("""\e[200~
755756
julia> A = 1
756757
1
@@ -775,6 +776,7 @@ fake_repl() do stdin_write, stdout_read, repl
775776
wait(c)
776777
@test Main.A == 1
777778
@test Main.B == 2
779+
end # redirect_stdout
778780

779781
# Close repl
780782
write(stdin_write, '\x04')

β€Žstdlib/SHA.versionβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
SHA_BRANCH = master
2-
SHA_SHA1 = 57c3a8c8358021b7a58526364e6885768fd95de2
2+
SHA_SHA1 = 2d1f84e6f8417a1a368de48318640d948b023e7a
33
SHA_GIT_URL := https://github.com/JuliaCrypto/SHA.jl.git
44
SHA_TAR_URL = https://api.github.com/repos/JuliaCrypto/SHA.jl/tarball/$1

β€Žtest/backtrace.jlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ end
184184

185185
# issue 28618
186186
let bt, found = false
187-
@info ""
187+
@debug ""
188188
bt = backtrace()
189189
for frame in map(lookup, bt)
190190
if frame[1].line == @__LINE__() - 2 && frame[1].file == Symbol(@__FILE__)

0 commit comments

Comments
Β (0)