diff --git a/apps/els_core/src/els_config.erl b/apps/els_core/src/els_config.erl index 3fca71a2b..2fd3652ce 100644 --- a/apps/els_core/src/els_config.erl +++ b/apps/els_core/src/els_config.erl @@ -283,7 +283,15 @@ project_paths(RootPath, Dirs, Recursive) -> ) || Dir <- Dirs ], - lists:append(Paths). + case Recursive of + false -> + lists:append(Paths); + true -> + Filter = fun(Path) -> + string:find(Path, "SUITE_data", trailing) =:= nomatch + end, + lists:filter(Filter, lists:append(Paths)) + end. -spec otp_paths(path(), boolean()) -> [string()]. otp_paths(OtpPath, Recursive) ->