<div dir="ltr">One question I need to ask though: why does `rebar ct` not set the node? This is actually set by CT itself, so why does it get removed?<div><br></div><div>Thanks,</div><div>r.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 20, 2016 at 10:22 AM, Roberto Ostinelli <span dir="ltr"><<a href="mailto:roberto@widetag.com" target="_blank">roberto@widetag.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Sun, Mar 20, 2016 at 10:07 AM, Roberto Ostinelli <span dir="ltr"><<a href="mailto:roberto@widetag.com" target="_blank">roberto@widetag.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote"><div>Long story short: in my tests I define some callback functions that need to be called for the tests to pass.</div><div>However, I need to specify the path to the test directory too, because otherwise my slave node doesn't have these functions defined.</div><div><br></div><div>This is how I do the trick now:</div><div><a href="https://github.com/ostinelli/syn/blob/1.2.0/test/syn_test_suite_helper.erl#L59" target="_blank">https://github.com/ostinelli/syn/blob/1.2.0/test/syn_test_suite_helper.erl#L59</a> (this passes)<br></div><div><a href="https://github.com/ostinelli/syn/blob/1.2.0/test/syn_test_suite_helper.erl#L60" target="_blank">https://github.com/ostinelli/syn/blob/1.2.0/test/syn_test_suite_helper.erl#L60</a> (this directory does not exist when I use rebar3).<br></div><div><br></div><div>SO: is there a way to have rebar copy the test directory to:</div><div>syn/_build/default/lib/syn/test</div><div><br></div><div>?</div></div></div></div></blockquote><div><br></div></span><div>Found an alternative to this, leaving it here for anyone interested. I start the slave node with:</div><div><br></div><div><div>start_slave(NodeShortName) -></div><div> CodePath = code:get_path(),</div><div> {ok, Node} = ct_slave:start(NodeShortName, [{boot_timeout, 10}]),</div><div> true = rpc:call(Node, code, set_path, [CodePath]),</div><div> {ok, Node}.</div></div><div><br></div><div>Hence I do not need to "rebuild" the directories.</div><div><br></div><div>Fred, Tristan, thank you for your help I can consider this matter closed.</div><div><br></div><div>Best,</div><div>r.</div><div><br></div></div></div></div>
</blockquote></div><br></div>