From 185337e5da4279a3cad7a75068b2ec6f203d7ad4 Mon Sep 17 00:00:00 2001 From: Igor Toporkov Date: Sun, 10 Oct 2021 13:36:52 +0200 Subject: [PATCH] Handle case when there is now test sources --- src/rebar_prv_common_test.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index 9353a30b8..a14c5ab10 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -46,7 +46,7 @@ do(State) -> %% successfully compiled apps {ok, S} -> {ok, T} = Tests, - TestSources = proplists:get_value(dir, T), + TestSources = proplists:get_value(dir, T, []), AllDeps = rebar_state:code_paths(S, all_deps), IsTestDir = fun(Path) -> string:slice(Path, length(Path) - 4, 4) == "test" end, CompiledTestsDirs = lists:filter(IsTestDir, AllDeps),