<div dir="ltr">Thank you for clarifying Peter. That was confusing.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 23, 2015 at 2:03 PM, Peter Andersson <span dir="ltr"><<a href="mailto:peppe@erlang.org" target="_blank">peppe@erlang.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Roberto, you can read about -erl_args here:<br>
<br>
<a href="http://www.erlang.org/doc/man/ct_run.html" target="_blank">http://www.erlang.org/doc/man/ct_run.html</a><br>
<br>
The CT flag config is unfortunately named, but we decided to keep the<br>
name and rely on the -erl_args feature. With -erl_args we don't have to<br>
prefix all CT flags in order to avoid possible clashes with erl flags<br>
(now and in the future).<br>
<br>
Best,<br>
Peter<br>
<div class="HOEnZb"><div class="h5"><br>
On 2015-04-23 13:53, Loïc Hoguin wrote:<br>
> ct_run -erl_args -config test.config<br>
><br>
> On 04/23/2015 02:41 PM, Roberto Ostinelli wrote:<br>
> > All,<br>
> > I've got an app `myapp` which uses a standard `sys.config` file.<br>
> > I'd like to test it using Common Tests, with a test configuration file.<br>
> ><br>
> > I'm passing the variable `-config test.config` to ct_run.<br>
> ><br>
> > However, when I start my app from the Common Test suite<br>
> > `myapp_SUITE.erl` then the app fails to start because inside the app<br>
> > `application:get_env(myapp, mykey)` returns `undefined`. I can, however,<br>
> > read this variable with `ct:get_config({myapp, mykey})`.<br>
> ><br>
> > How am I supposed to use a custom `test.config` file that is loaded in<br>
> > ct_run *and* read by the app itself?<br>
> ><br>
> > I've spent almost a day on this and I'm honestly 5 minutes away from<br>
> > dropping all this in the dustbin and using an external test tool<br>
> > instead. Please help me stick to Erlang. :)<br>
> ><br>
> > r.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > erlang-questions mailing list<br>
> > <a href="mailto:erlang-questions@erlang.org">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>
><br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">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>
</div></div></blockquote></div><br></div>