]> granicus.if.org Git - ejabberd/commitdiff
Print something when doing tests in travis, as not doing that get us killed
authorPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 31 Jan 2018 16:03:18 +0000 (17:03 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 31 Jan 2018 16:03:18 +0000 (17:03 +0100)
.travis.yml
test/ejabberd_SUITE.erl

index 97a54216031e9a0c2aafa309e2f478871599ba3a..25cc627cd22834271ee0f127d768ebf123b8b0f4 100644 (file)
@@ -45,7 +45,9 @@ script:
   - make xref
   - sed -i -e 's/ct:pal/ct:log/' test/suite.erl
   - 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
 
 after_script:
@@ -53,8 +55,8 @@ after_script:
 
 after_failure:
   - find logs -name exunit.log -exec cat '{}' ';'
-  # Try checking Riak database logs
   - find logs -name ejabberd.log -exec cat '{}' ';'
+  - find logs -name suite.log -exec cat '{}' ';'
 
 after_success:
   - coveralls-merge erlang.json
index 71f64a1cb8cf16888627a8ec395a5f05c85382c1..dcc17d0f5aae08af1bdfa1f4d43f4ee85be545cb 100644 (file)
@@ -210,6 +210,7 @@ init_per_testcase(stop_ejabberd, Config) ->
                        set_opt(anonymous, true, Config)),
     open_session(bind(auth(connect(NewConfig))));
 init_per_testcase(TestCase, OrigConfig) ->
+    ct:print(80, "Testcase '~p' starting", [TestCase]),
     Test = atom_to_list(TestCase),
     IsMaster = lists:suffix("_master", Test),
     IsSlave = lists:suffix("_slave", Test),