Skip to content

Commit

Permalink
Merge pull request #1109 from dgud/dgud/filter-test-dirs
Browse files Browse the repository at this point in the history
[#859] Ignore test data directories.
  • Loading branch information
robertoaloi committed Oct 6, 2021
2 parents cbc0f8d + 4475006 commit 2a37aba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/els_core/src/els_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit 2a37aba

Please sign in to comment.