From fb527308bb134d7739eb01ea76ddc3d16109675f Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Fri, 5 Jan 2018 20:41:16 +0100 Subject: [PATCH] error on missing testfile (#25408) --- test/runtests.jl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index eba0e73853c67..583d542ca8629 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -18,16 +18,19 @@ end function test_path(test) if test in STDLIBS - test_file = joinpath(STDLIB_DIR, test, "test", "runtests") - if !isfile(test_file * ".jl") - error("Standard library $test did not provide a `test/runtests.jl` file") - end - return test_file + return joinpath(STDLIB_DIR, test, "test", "runtests") else - return test + return joinpath(@__DIR__, test) end end +# Check all test files exist +isfiles = isfile.(test_path.(tests) .* ".jl") +if any(equalto(false), isfiles) + error("did not find test files for the following tests: ", + join(tests[.!(isfiles)], ", ")) +end + const node1_tests = String[] function move_to_node1(t) if t in tests