<div dir="ltr">This seems to be an erlang bug.<div><br></div><div>Reported it here:</div><div><a href="http://erlang.org/pipermail/erlang-bugs/2015-April/004911.html">http://erlang.org/pipermail/erlang-bugs/2015-April/004911.html</a><br></div><div><br></div><div>Best,</div><div>r.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 22, 2015 at 3:06 PM, 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"><div><div>Dear list,</div><div>I have a project with a standard OTP structure. Main app is in `apps/myapp`.</div><div>My CT are in `apps/myapp/test`.</div><div><br></div><div>When I run a simple CT file:</div><div><br></div><div>====================================</div><div>$ rebar ct skip_deps=true</div><div>==> myapp (ct)</div><div>DONE.</div><div>Testing apps.myapp: TEST COMPLETE, 1 ok, 0 failed of 1 test cases</div><div><div>====================================</div></div><div><br></div><div><br></div><div>Then a log directory gets created in `apps/myapp/logs` which contain all CT results.<br></div><div>However, when I run the tests again I get:<br></div><div><br></div><div><br></div><div><div>====================================</div></div><div>$ rebar ct skip_deps=true</div><div>==> myapp (ct)</div><div>ERROR: ct_run -noshell -pa "/Users/roberto/workspace/myapp/apps/myapp/ebin" "/Users/roberto/workspace/myapp/deps/edown/ebin" "/Users/roberto/workspace/myapp/deps/rabbit_common/ebin" "/Users/roberto/workspace/myapp/deps/meck/ebin" "/Users/roberto/workspace/myapp/deps/bear/ebin" "/Users/roberto/workspace/myapp/deps/lager/ebin" "/Users/roberto/workspace/myapp/deps/setup/ebin" "/Users/roberto/workspace/myapp/deps/jiffy/ebin" "/Users/roberto/workspace/myapp/deps/amqp_client/ebin" "/Users/roberto/workspace/myapp/deps/folsom/ebin" "/Users/roberto/workspace/myapp/deps/netlink/ebin" "/Users/roberto/workspace/myapp/deps/afunix/ebin" "/Users/roberto/workspace/myapp/deps/parse_trans/ebin" "/Users/roberto/workspace/myapp/deps/ranch/ebin" "/Users/roberto/workspace/myapp/deps/cowlib/ebin" "/Users/roberto/workspace/myapp/deps/goldrush/ebin" "/Users/roberto/workspace/myapp/deps/exometer/ebin" "/Users/roberto/workspace/myapp/deps/recon/ebin" "/Users/roberto/workspace/myapp/deps/cowboy/ebin" "/usr/local/bin/rebar/rebar/ebin" "/usr/local/bin/rebar" "/Users/roberto/workspace/myapp/."   -name test@robertos-neato.local -logdir "/Users/roberto/workspace/myapp/apps/myapp/logs" -env TEST_DIR "/Users/roberto/workspace/myapp/apps/myapp/test"    -dir test >> /Users/roberto/workspace/myapp/apps/myapp/logs/raw.log 2>&1 failed with error: 2 and output:</div><div><br></div><div>ERROR: ct failed while processing /Users/roberto/workspace/myapp/apps/myapp: rebar_abort</div></div><div><div>====================================</div></div><div><br></div><div><br></div><div>If I delete the `apps/myapp/logs` directory, I can re-run my tests with no problem.<br></div><div>logs/raw.log` contains:<br></div><div><br></div><div><br></div><div><div>====================================</div></div><div>--- Test run on 2015/04/22 15:03:18 ---<br></div><div><div>Converting "/Users/roberto/workspace/myapp/." to "/Users/roberto/workspace/myapp" and re-inserting with add_patha/1</div><div><br></div><div><br></div><div>Common Test v1.10 starting (cwd is /Users/roberto/workspace/myapp/apps/myapp)</div><div><br></div><div><br></div><div>Common Test: Running make in test directories...</div><div><br></div><div>CWD set to: "/Users/roberto/workspace/myapp/apps/myapp/logs/ct_run.test@robertos.local.2015-04-22_15.03.18"</div><div><br></div><div>TEST INFO: 1 test(s), 1 case(s) in 1 suite(s)</div><div><br></div><div>Testing apps.myapp: Starting test, 1 test cases</div><div>Testing apps.myapp: TEST COMPLETE, 1 ok, 0 failed of 1 test cases</div><div><br></div><div><br></div><div>=ERROR REPORT==== 22-Apr-2015::15:03:19 ===</div><div>Error in process <0.37.0> on node 'test@robertos.local' with exit value: {{badmatch,["ct_run","test@robertos","local","2015-04-22_14","59","52"]},[{ct_logs,'-sort_ct_runs/1-fun-0-',2,[{file,"ct_logs.erl"},{line,1912}]},{lists,sort,2,[{file,"lists.erl"},{line,967}]},{ct_logs,make_all_suites_index,1,[{file... </div><div><br></div><div>Test run crashed! This could be an internal error - please report!</div><div><br></div><div>{{badmatch,["ct_run","test@robertos","local","2015-04-22_14","59","52"]},</div><div> [{ct_logs,'-sort_ct_runs/1-fun-0-',2,[{file,"ct_logs.erl"},{line,1912}]},</div><div>  {lists,sort,2,[{file,"lists.erl"},{line,967}]},</div><div>  {ct_logs,make_all_suites_index,1,[{file,"ct_logs.erl"},{line,2232}]},</div><div>  {ct_logs,close,2,[{file,"ct_logs.erl"},{line,178}]},</div><div>  {ct_util,loop,3,[{file,"ct_util.erl"},{line,471}]}]}</div><div><div>====================================</div></div><div><br></div><div><br></div><div>...Any ideas?</div><div><br></div><div>Best,</div><div>r.</div><div><br></div><div><br></div></div></div>
</blockquote></div><br></div>