Skip to content

Commit

Permalink
choosetests: preparations for setting up a separate Buildkite job t…
Browse files Browse the repository at this point in the history
…hat runs the `Pkg` test suite (#42859)
  • Loading branch information
DilumAluthge authored Nov 1, 2021
1 parent 9ac5582 commit b55fb5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/choosetests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ function choosetests(choices = [])
end
end

explicit_pkg3 = ("Pkg" in tests) || ("Pkg/pkg" in tests)
explicit_libgit2 = "LibGit2/online" in tests

filtertests!(tests, "unicode", ["unicode/utf8"])
filtertests!(tests, "strings", ["strings/basic", "strings/search", "strings/util",
"strings/io", "strings/types"])
Expand Down Expand Up @@ -163,8 +166,6 @@ function choosetests(choices = [])
filter!(!in(tests), unhandled)
filter!(!in(skip_tests), tests)

explicit_pkg3 = "Pkg/pkg" in tests
explicit_libgit2 = "LibGit2/online" in tests
new_tests = String[]
for test in tests
if test in STDLIBS
Expand All @@ -180,7 +181,8 @@ function choosetests(choices = [])
end
filter!(x -> (x != "stdlib" && !(x in STDLIBS)) , tests)
append!(tests, new_tests)
explicit_pkg3 || filter!(x -> x != "Pkg/pkg", tests)
explicit_pkg3 || filter!(x -> x != "Pkg", tests)
explicit_pkg3 || filter!(x -> x != "Pkg/pkg", tests)
explicit_libgit2 || filter!(x -> x != "LibGit2/online", tests)

# Filter out tests from the test groups in the stdlibs
Expand Down

0 comments on commit b55fb5f

Please sign in to comment.