geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r510783 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
Date Fri, 23 Feb 2007 03:03:09 GMT
Author: jdillon
Date: Thu Feb 22 19:03:08 2007
New Revision: 510783

URL: http://svn.apache.org/viewvc?view=rev&rev=510783
Log:
Add start of retry

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy?view=diff&rev=510783&r1=510782&r2=510783
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
Thu Feb 22 19:03:08 2007
@@ -299,6 +299,29 @@
         sh.delete()
     }
     
+    def runtestsRetryNonPassing = {
+        def summaryFile = new File('project/tck-testsuite/target/summary.properties')
+        if (!summaryFile.exists()) {
+            log.warn "Missing runtests summary file: $summaryFile"
+            return
+        }
+        
+        def summaryProps = new Properties()
+        summaryProps.load(summaryFile.newInputStream())
+        
+        // Only attempt retries if there were non-passing tests
+        if (summaryProps.passed == 'true') {
+            log.info 'No failed tests detected; skipping retry'
+            return
+        }
+        
+        log.info 'Some tests did not pass; attempting to retry'
+        
+        //
+        // TODO: Add --retry fail,error to args and re-run
+        //
+    }
+    
     def runtestsIteration = {
         params.tests = '%'
         



Mime
View raw message