From 287da35a3318707627236b73cf062b24f6cf4e56 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Tue, 13 Nov 2012 13:55:17 +0000 Subject: [PATCH] [ci] Fix failure detection when not all tests failed --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 87adae712..5768028b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ after_script: ## Print a basic summary in unix style - "echo 'Summary:'; cat results | sort | uniq -c" ## This will detect whether the build should pass or fail - - "grep -v -q 'fail' results" + - "test `grep -c 'fail' results` -eq 0" env: