@@ -110,9 +110,13 @@ function choosetests(choices = [])
110110
111111 unhandled = copy (skip_tests)
112112
113- if tests == [" all" ] || isempty (tests)
114- tests = testnames
113+ requested_all = " all" in tests
114+ requested_default = " default" in tests
115+ if isempty (tests) || requested_all || requested_default
116+ append! (tests, TESTNAMES)
115117 end
118+ filter! (x -> x != " all" , tests)
119+ filter! (x -> x != " default" , tests)
116120
117121 function filtertests! (tests, name, files= [name])
118122 flt = x -> (x != name && ! (x in files))
@@ -125,7 +129,7 @@ function choosetests(choices = [])
125129 end
126130 end
127131
128- explicit_pkg3 = " Pkg" in tests
132+ explicit_pkg = " Pkg" in tests
129133 explicit_libgit2 = " LibGit2/online" in tests
130134
131135 filtertests! (tests, " unicode" , [" unicode/utf8" ])
@@ -189,8 +193,9 @@ function choosetests(choices = [])
189193 end
190194 filter! (x -> (x != " stdlib" && ! (x in STDLIBS)) , tests)
191195 append! (tests, new_tests)
192- explicit_pkg3 || filter! (x -> x != " Pkg" , tests)
193- explicit_libgit2 || filter! (x -> x != " LibGit2/online" , tests)
196+
197+ requested_all || explicit_pkg || filter! (x -> x != " Pkg" , tests)
198+ requested_all || explicit_libgit2 || filter! (x -> x != " LibGit2/online" , tests)
194199
195200 # Filter out tests from the test groups in the stdlibs
196201 filter! (! in (tests), unhandled)
0 commit comments