geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r502237 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy
Date Thu, 01 Feb 2007 15:08:22 GMT
Author: jdillon
Date: Thu Feb  1 07:08:22 2007
New Revision: 502237

URL: http://svn.apache.org/viewvc?view=rev&rev=502237
Log:
bit of clean up, still needs more work, but this is less noisy

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

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy?view=diff&rev=502237&r1=502236&r2=502237
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy
Thu Feb  1 07:08:22 2007
@@ -47,7 +47,10 @@
     }
     
     def scanFor(input, text) {
+        log.info "Scanning for: $text"
+        
         def line
+        
         while ((line = input.readLine()) != null) {
             if (line.startsWith(text)) {
                 return line
@@ -76,26 +79,14 @@
         // Read the test description
         scanFor(input, '#-----testdescription-----')
         desc = loadProperties(input)
-        log.info 'Description:'
-        desc.each {
-            log.info "    $it"
-        }
         
         // Read the environment
         scanFor(input, '#-----environment-----')
         env = loadProperties(input)
-        log.info 'Environment:'
-        env.each {
-            log.info "    $it"
-        }
         
         // Read the test result properties
         scanFor(input, '#-----testresult-----')
         props = loadProperties(input)
-        log.info 'Properties:'
-        props.each {
-            log.info "    $it"
-        }
         
         // Load test sections
         sections = new LinkedHashMap()
@@ -111,10 +102,6 @@
         
         status = scanFor(input, 'test result: ').split(' ', 3)[2]
         log.info "Status: $status"
-        
-        if (!status) {
-            throw new ParseException("Missing token: $TSTRESULT")
-        }
     }
     
     Map loadProperties(BufferedReader input) {
@@ -130,6 +117,10 @@
             assert parts.size() == 2
             
             props[parts[0]] = parts[1]
+        }
+        
+        props.each {
+            log.info "    $it"
         }
         
         return props



Mime
View raw message