at master 1.7 kB view raw
1diff --git a/share/julia/test/choosetests.jl b/share/julia/test/choosetests.jl 2index 334ef05..db5f795 100644 3--- a/share/julia/test/choosetests.jl 4+++ b/share/julia/test/choosetests.jl 5@@ -31,6 +31,19 @@ const TESTNAMES = [ 6 "smallarrayshrink", "opaque_closure", "filesystem", "download", 7 ] 8 9+const INTERNET_REQUIRED_LIST = [ 10+ "Artifacts", 11+ "Downloads", 12+ "LazyArtifacts", 13+ "LibCURL", 14+ "LibGit2", 15+ "Pkg", 16+ "download", 17+ "TOML", 18+] 19+ 20+const NETWORK_REQUIRED_LIST = vcat(INTERNET_REQUIRED_LIST, ["Sockets"]) 21+ 22 """ 23 `(; tests, net_on, exit_on_error, seed) = choosetests(choices)` selects a set of tests to be 24 run. `choices` should be a vector of test names; if empty or set to 25@@ -149,6 +162,7 @@ function choosetests(choices = []) 26 filtertests!(tests, "compiler/EscapeAnalysis", [ 27 "compiler/EscapeAnalysis/local", "compiler/EscapeAnalysis/interprocedural"]) 28 filtertests!(tests, "stdlib", STDLIBS) 29+ filtertests!(tests, "internet_required", INTERNET_REQUIRED_LIST) 30 # do ambiguous first to avoid failing if ambiguities are introduced by other tests 31 filtertests!(tests, "ambiguous") 32 33@@ -164,16 +178,7 @@ function choosetests(choices = []) 34 filter!(x -> x != "rounding", tests) 35 end 36 37- net_required_for = filter!(in(tests), [ 38- "Artifacts", 39- "Downloads", 40- "LazyArtifacts", 41- "LibCURL", 42- "LibGit2", 43- "Sockets", 44- "download", 45- "TOML", 46- ]) 47+ net_required_for = filter!(in(tests), NETWORK_REQUIRED_LIST) 48 net_on = true 49 JULIA_TEST_NETWORKING_AVAILABLE = get(ENV, "JULIA_TEST_NETWORKING_AVAILABLE", "") |> 50 strip |>