fix(test): fix flaky test node setup
This commit is contained in:
parent
ac7a13f9f2
commit
ec1ff14759
|
@ -662,7 +662,12 @@ host() ->
|
||||||
Host.
|
Host.
|
||||||
|
|
||||||
ebin_path() ->
|
ebin_path() ->
|
||||||
string:join(["-pa" | lists:filter(fun is_lib/1, code:get_path())], " ").
|
string:join(["-pa" | paths()], " ").
|
||||||
|
|
||||||
is_lib(Path) ->
|
paths() ->
|
||||||
string:prefix(Path, code:lib_dir()) =:= nomatch.
|
[
|
||||||
|
Path
|
||||||
|
|| Path <- code:get_path(),
|
||||||
|
string:prefix(Path, code:lib_dir()) =:= nomatch,
|
||||||
|
string:str(Path, "_build/default/plugins") =:= 0
|
||||||
|
].
|
||||||
|
|
Loading…
Reference in New Issue