Add a way to make the build succeed on test failures.
Xavier Ducrohet [Tue, 15 Jan 2013 18:54:19 +0000 (10:54 -0800)]
This is to differentiate between broken build and broken tests
on Jenkins.

Change-Id: I0334850321f5c9384e8d47a97d5654899e9539f9

build.gradle

index bd8bc10..ba12c6e 100644 (file)
@@ -21,6 +21,12 @@ subprojects {
         baseVersion = '0.3'
     }
 
+    task disableTestFailures << {
+        tasks.withType(Test) {
+            ignoreFailures = true
+        }
+    }
+
     group = 'com.android.tools.build'
 }