<div dir="ltr">Hi there!<div><br></div><div> Adding more debug to understand what is happening, I've found that there's somehting wrong from the included path, so that, using make quicktests (that fires the whole  testsuite), executing path: filename:absname("") equals ~/cluster/.eunit  .  Executinng eunit:test(cluster_test) manually the execution path belongs to cluster app, so that, now its completed succesfully.</div>

<div><br></div><div> So, now i'm able to pass eunit:test(cluster_test), but if I try to execute from the whole suite test, it fails (undefined , timeout), at least the problem seems to belong to some missconfigured path.</div>

<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-20 16:05 GMT+02:00 marcos quesada <span dir="ltr"><<a href="mailto:marcos.quesadas@gmail.com" target="_blank">marcos.quesadas@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi there!<div><br></div><div> Sorry about the delay, summertime....</div><div><br></div><div> I've tests <b>to append or substitute -pa to -pz</b>, without any positive results, if i've check which paths are loaded, using: code:get_path(). there's no difference between pa or pz, as a result,still getting the same error:</div>

<div class="">
<div><br></div><div><div>   {value,</div><div>         {badrpc,</div><div>             {'EXIT',</div><div>            <b>     {undef,</b></div><div><b>                     [{cluster,join,[...],...},</b></div><div>


<b>                      {rpc,'-handle_call_call/6-fun-0-',...}]}}}}]}</b></div></div><div><br></div></div><div>Anyone coould give me any clue?</div><div>If i'm not worng, this error is answering that join function is undefined on cluster module, as you see all those methods are exported, in fact, if join wasn't exported <b style="font-size:13px;font-family:arial,sans-serif"> cluster_test:cluster_formation() </b><span style="font-size:13px;font-family:arial,sans-serif"> will ever fail.</span></div>


<div><br></div><div><div><br></div><div>-export([start/0, stop/0, join/1, leave/0, status/0, get_ring/0, get_timestamp/0]).</div><div>-export([ping/1, get/1, set/2, register/2]).</div></div><div><br></div><div><br></div>

<div>
Thank you!</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-04 23:51 GMT+02:00 T Ty <span dir="ltr"><<a href="mailto:tty.erlang@gmail.com" target="_blank">tty.erlang@gmail.com</a>></span>:<div>

<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">-pa adds to front of the path. -pz to the end of the path. </div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 4:14 PM, marcos quesada <span dir="ltr"><<a href="mailto:marcos.quesadas@gmail.com" target="_blank">marcos.quesadas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nop, didn't find it. Maybe i'm missing something, but I think that slaves nodes are getting right the path to find all required beams. All slaves are initialized using:<br>




<div>Args = " -pa apps/*/ebin deps/*/ebin -setcookie secret -rsh ssh",<br>
</div> In fact when I execute cluster_test:cluster_formation() works fine.<br>
<br>
What's the difference to use -pz from -pa?<br>
<br>
 Thank you!<br>
<br>
El lunes, 4 de agosto de 2014 03:01:06 UTC+2, Scott Lystig Fritchie  escribió:<br>
<div><div>> marcos quesada <<a href="mailto:marcos.quesadas@gmail.com" target="_blank">marcos.quesadas@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> mq> **error:{assertEqual_failed,<br>
><br>
> mq>     [{module,cluster_test},<br>
><br>
> mq>      {line,43},<br>
><br>
> mq>      {expression,"Result1"},<br>
><br>
> mq>      {expected,ok},<br>
><br>
> mq>      {value,<br>
><br>
> mq>          {badrpc,<br>
><br>
> mq>              {'EXIT',<br>
><br>
> mq>                  {undef,<br>
><br>
> mq>                      [{cluster,join,[...],...},<br>
><br>
> mq>                       {rpc,'-handle_call_call/6-fun-0-',...}]}}}}]}<br>
><br>
><br>
><br>
> Have you found the cause of this error?  If I had to guess, the slave<br>
><br>
> node's code_server doesn't know the path to your cluster.beam module.<br>
><br>
> If that's true, then appending ["-pz", PathToYourModule] to the Args<br>
><br>
> list of slave:start/3 can correct it.<br>
><br>
><br>
><br>
> -Scott<br>
><br>
> _______________________________________________<br>
><br>
> erlang-questions mailing list<br>
><br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div></div></div><br></div>
</blockquote></div><br></div>