[erlang-questions] rebar3 and CT's main node

Roberto Ostinelli roberto@REDACTED
Sat Mar 19 10:07:38 CET 2016


All,
When I manually run CT with:

ct_run -dir test -pa ebin

and print out the node the tests are running on with a simple:

ct:pal("node = ~p", [node()]).

I get something similar to:

'ct@REDACTED'


However, when I run CT with rebar3 by issuing:

rebar3 ct

Then the same command prints:

'nonode@REDACTED'

This is ok for most tests, but since I'm testing distributed nodes with
ct_slave [1] this impedes a slave to be started, as the main node is a
'nonode@REDACTED' and hence the slave node cannot connect to this 'nonode'.

If anyone wants to try this just run Syn's suite, it will fail when using
rebar3 here:
https://github.com/ostinelli/syn/blob/1.1.0/test/syn_test_suite_helper.erl#L62

With a {{badmatch,{error,not_alive,nonode@REDACTED}}.

Any ideas?

Thank you,
r.


[1] http://erlang.org/doc/man/ct_slave.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160319/e010ec70/attachment.htm>


More information about the erlang-questions mailing list