summaryrefslogtreecommitdiff
path: root/test/rebar_compiler_tests.erl
diff options
context:
space:
mode:
authorLuis Rascão <luis.rascao@gmail.com>2015-10-12 13:48:09 +0100
committerLuis Rascão <luis.rascao@gmail.com>2015-10-25 15:20:53 +0000
commitea84fdaf31fddab55ba3d9630710b21e5db209bc (patch)
treee7591d73546a068c34d22a72fcd3e895e9877b0e /test/rebar_compiler_tests.erl
parentb870e061a3038039e1721723b17c8e8cd27b82b5 (diff)
downloadrebar-ea84fdaf31fddab55ba3d9630710b21e5db209bc.tar.gz
Fix windows eunit tests
File tests: windows file operations should abort on error the same as unix operations invoked through sh. Also windows does not support the '?' character in filenames. Eunit tests: the 'All' prefix is missing on the 'x tests passed' message. Eunit only prints the 'All' prefix if there are more than 2 passed tests, dropping the prefix on the match works for all cases.
Diffstat (limited to 'test/rebar_compiler_tests.erl')
-rw-r--r--test/rebar_compiler_tests.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rebar_compiler_tests.erl b/test/rebar_compiler_tests.erl
index 3ed600b..104a7d8 100644
--- a/test/rebar_compiler_tests.erl
+++ b/test/rebar_compiler_tests.erl
@@ -84,11 +84,11 @@ not_keep_going_test_() ->
setup,
fun() ->
setup_basic_project(),
- setup_rebar_config(),
- rebar("compile")
+ setup_rebar_config()
end,
fun teardown/1,
- fun(RebarOut)->
+ fun()->
+ RebarOut = rebar("compile"),
[
{"Exit after error",
?_assert(string:str(RebarOut, "ERROR: compile failed") =/= 0)}