[erlang-bugs] Cannot run CT tests multiple times
Roberto Ostinelli
roberto@REDACTED
Wed Apr 22 16:34:19 CEST 2015
Dear list,
When I run CT tests multiple times I encounter a bug.
========
erl -pa apps/*/ebin -pa deps/*/ebin \
-name myapp@REDACTED \
+K true \
+P 5000000 \
+Q 1000000 \
-env ERL_FULLSWEEP_AFTER 10 \
-config myapp \
-mnesia schema_location ram \
-noshell \
-eval 'ct_run:run_test([{dir, "apps/myapp/test"}, {logdir,
"apps/myapp/logs"}]).' \
-s erlang halt
=========
Running this the first 2/3 times will give:
=========
Common Test starting (cwd is /Users/roberto/workspace/myapp)
Common Test: Running make in test directories...
CWD set to:
"/Users/roberto/workspace/myapp/apps/myapp/logs/ct_run.myapp@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
=========
After the 3rd time or so (this happens randomly), I get:
=========
$ ./tests
Common Test starting (cwd is /Users/roberto/workspace/myapp)
=ERROR REPORT==== 22-Apr-2015::16:26:00 ===
Error in process <0.42.0> on node 'myapp@REDACTED' with exit value:
{{badmatch,["ct_run","myapp@REDACTED
","0","0","1","2015-04-22_16","25","26"]},[{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...
=========
If I delete the directory where the CT logs are stored I can re-run the
command, without issues.
Any ideas?
Best,
r.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20150422/bc1b3424/attachment.htm>
More information about the erlang-bugs
mailing list