Print something when doing tests in travis, as not doing that get us killed

This commit is contained in:
Paweł Chmielowski 2018-01-31 17:03:18 +01:00
parent b86402f3e7
commit 2a77805072
2 changed files with 5 additions and 2 deletions

View File

@ -45,7 +45,9 @@ script:
- make xref - make xref
- sed -i -e 's/ct:pal/ct:log/' test/suite.erl - sed -i -e 's/ct:pal/ct:log/' test/suite.erl
- ln -sf ../sql priv/ - ln -sf ../sql priv/
- escript ./rebar skip_deps=true ct - echo "" >> rebar.config
- echo "{ct_extra_params, "-verbosity 20"}." >> rebar.config
- escript ./rebar skip_deps=true ct -v
- grep -q 'TEST COMPLETE, \([[:digit:]]*\) ok, .* of \1 ' logs/raw.log - grep -q 'TEST COMPLETE, \([[:digit:]]*\) ok, .* of \1 ' logs/raw.log
after_script: after_script:
@ -53,8 +55,8 @@ after_script:
after_failure: after_failure:
- find logs -name exunit.log -exec cat '{}' ';' - find logs -name exunit.log -exec cat '{}' ';'
# Try checking Riak database logs
- find logs -name ejabberd.log -exec cat '{}' ';' - find logs -name ejabberd.log -exec cat '{}' ';'
- find logs -name suite.log -exec cat '{}' ';'
after_success: after_success:
- coveralls-merge erlang.json - coveralls-merge erlang.json

View File

@ -210,6 +210,7 @@ init_per_testcase(stop_ejabberd, Config) ->
set_opt(anonymous, true, Config)), set_opt(anonymous, true, Config)),
open_session(bind(auth(connect(NewConfig)))); open_session(bind(auth(connect(NewConfig))));
init_per_testcase(TestCase, OrigConfig) -> init_per_testcase(TestCase, OrigConfig) ->
ct:print(80, "Testcase '~p' starting", [TestCase]),
Test = atom_to_list(TestCase), Test = atom_to_list(TestCase),
IsMaster = lists:suffix("_master", Test), IsMaster = lists:suffix("_master", Test),
IsSlave = lists:suffix("_slave", Test), IsSlave = lists:suffix("_slave", Test),