[FIX] grep for errors in whole logfile
authorHolger Brunn <hbrunn@therp.nl>
Mon, 21 Jul 2014 11:04:39 +0000 (13:04 +0200)
committerHolger Brunn <hbrunn@therp.nl>
Mon, 21 Jul 2014 11:04:39 +0000 (13:04 +0200)
.travis.yml

index 163606e..340f86b 100644 (file)
@@ -21,7 +21,7 @@ script:
   - createdb ${DATABASE}
   - ./openerp-server -d ${DATABASE} --addons-path=./openerp/addons,./addons --stop-after-init --init=all
   - coverage run ./openerp-server -d ${DATABASE} --addons-path=./openerp/addons,./addons --stop-after-init --init=all --test-enable --log-level=test | tee stdout.log
-  - if grep -v mail stdout.log | egrep -q "(At least one test failed when loading the modules.|ERROR ${DATABASE})"; then exit 1; fi
+  - if egrep -q "(At least one test failed when loading the modules.|ERROR ${DATABASE})" stdout.log; then exit 1; fi
 
 after_success:
   coveralls