@@ -261,22 +261,23 @@ function run_testitems(
261
261
262
262
package = pkg_name (package_dir)
263
263
selectors = compute_test_selectors (changes)
264
+ test_dir = joinpath (package_dir, " test" )
264
265
try
265
266
if isempty (selectors)
266
267
# no selectors, run all tests
267
- ReTestItems. runtests (joinpath (package_dir, " test " ) ; name= name)
268
+ ReTestItems. runtests (test_dir ; name= name)
268
269
else
269
270
paths = Vector {String} ()
270
271
for selector in selectors
271
272
if isempty (selector. tests)
272
- suitepath = joinpath (" test/ " , selector. suite)
273
+ suitepath = joinpath (test_dir , selector. suite)
273
274
if isdir (suitepath)
274
275
# if the suite resolves to a directory, run all tests in it
275
276
push! (paths, suitepath)
276
277
else
277
278
# otherwise, look for a file with the suite name and the julia test
278
279
# suite convention, using underscores and the _tests.jl suffix.
279
- suitefile = joinpath (" test/ " , replace (selector. suite, " -" => " _" )) * " _tests.jl"
280
+ suitefile = joinpath (test_dir , replace (selector. suite, " -" => " _" )) * " _tests.jl"
280
281
if isfile (suitefile)
281
282
push! (paths, suitefile)
282
283
else
@@ -286,12 +287,16 @@ function run_testitems(
286
287
else
287
288
# only run the specific tests selected by the selector
288
289
for test in selector. tests
289
- push! (paths, joinpath (joinpath (" test/ " , selector. suite), test))
290
+ push! (paths, joinpath (joinpath (test_dir , selector. suite), test))
290
291
end
291
292
end
292
293
end
293
- progress (package, " Running tests in the following paths: $paths " )
294
- ReTestItems. runtests (paths... ; name= name)
294
+ if isempty (paths)
295
+ progress (package, " No Julia tests found for selectors: $selectors " )
296
+ else
297
+ progress (package, " Running Julia tests in the following paths: $paths " )
298
+ ReTestItems. runtests (paths... ; name= name)
299
+ end
295
300
end
296
301
finally
297
302
RAITest. set_clone_db! (nothing )
0 commit comments