Cannot run CT tests multiple times
Roberto Ostinelli <[email protected]> Wed, 22 Apr 2015 16:34:19 +0200
| Newsgroups | gmane.comp.lang.erlang.bugs |
|---|---|
| Message-ID | <CAM5fRyr6Po0DyqRWfBQcxNQjHvd2PBFpeqETPN=q_nezxBuZVQ@mail.gmail.com> |
Dear list,
When I run CT tests multiple times I encounter a bug.
========
erl -pa apps/*/ebin -pa deps/*/ebin \
-name [email protected] \
+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/[email protected]_16.25.39
"
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 '[email protected]' with exit value:
{{badmatch,["ct_run","myapp@127
","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.
_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs