[erlang-questions] Common Tests
Roberto Ostinelli
roberto@REDACTED
Thu Apr 23 12:26:50 CEST 2015
This seems to be an erlang bug.
Reported it here:
http://erlang.org/pipermail/erlang-bugs/2015-April/004911.html
Best,
r.
On Wed, Apr 22, 2015 at 3:06 PM, Roberto Ostinelli <roberto@REDACTED>
wrote:
> Dear list,
> I have a project with a standard OTP structure. Main app is in
> `apps/myapp`.
> My CT are in `apps/myapp/test`.
>
> When I run a simple CT file:
>
> ====================================
> $ rebar ct skip_deps=true
> ==> myapp (ct)
> DONE.
> Testing apps.myapp: TEST COMPLETE, 1 ok, 0 failed of 1 test cases
> ====================================
>
>
> Then a log directory gets created in `apps/myapp/logs` which contain all
> CT results.
> However, when I run the tests again I get:
>
>
> ====================================
> $ rebar ct skip_deps=true
> ==> myapp (ct)
> 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@REDACTED
> -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:
>
> ERROR: ct failed while processing
> /Users/roberto/workspace/myapp/apps/myapp: rebar_abort
> ====================================
>
>
> If I delete the `apps/myapp/logs` directory, I can re-run my tests with no
> problem.
> logs/raw.log` contains:
>
>
> ====================================
> --- Test run on 2015/04/22 15:03:18 ---
> Converting "/Users/roberto/workspace/myapp/." to
> "/Users/roberto/workspace/myapp" and re-inserting with add_patha/1
>
>
> Common Test v1.10 starting (cwd is
> /Users/roberto/workspace/myapp/apps/myapp)
>
>
> Common Test: Running make in test directories...
>
> CWD set to:
> "/Users/roberto/workspace/myapp/apps/myapp/logs/ct_run.test@REDACTED
> "
>
> TEST INFO: 1 test(s), 1 case(s) in 1 suite(s)
>
> Testing apps.myapp: Starting test, 1 test cases
> Testing apps.myapp: TEST COMPLETE, 1 ok, 0 failed of 1 test cases
>
>
> =ERROR REPORT==== 22-Apr-2015::15:03:19 ===
> Error in process <0.37.0> on node 'test@REDACTED' with exit value:
> {{badmatch,["ct_run","test@REDACTED
> ","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...
>
> Test run crashed! This could be an internal error - please report!
>
> {{badmatch,["ct_run","test@REDACTED","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,"ct_logs.erl"},{line,2232}]},
> {ct_logs,close,2,[{file,"ct_logs.erl"},{line,178}]},
> {ct_util,loop,3,[{file,"ct_util.erl"},{line,471}]}]}
> ====================================
>
>
> ...Any ideas?
>
> Best,
> r.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150423/2346c7a7/attachment.htm>
More information about the erlang-questions
mailing list