geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r501259 - /geronimo/sandbox/build-support/harness/trunk/lib/buildharness/commands/iteration.groovy
Date Tue, 30 Jan 2007 01:01:50 GMT
Author: jdillon
Date: Mon Jan 29 17:01:50 2007
New Revision: 501259

URL: http://svn.apache.org/viewvc?view=rev&rev=501259
Log:
Sanity check the iteration mapping to make sure there are no holes

Modified:
    geronimo/sandbox/build-support/harness/trunk/lib/buildharness/commands/iteration.groovy

Modified: geronimo/sandbox/build-support/harness/trunk/lib/buildharness/commands/iteration.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/harness/trunk/lib/buildharness/commands/iteration.groovy?view=diff&rev=501259&r1=501258&r2=501259
==============================================================================
--- geronimo/sandbox/build-support/harness/trunk/lib/buildharness/commands/iteration.groovy
(original)
+++ geronimo/sandbox/build-support/harness/trunk/lib/buildharness/commands/iteration.groovy
Mon Jan 29 17:01:50 2007
@@ -38,6 +38,12 @@
         def props = new Properties()
         props.load(file.newInputStream())
         
+        // Sanity check mapping, make sure we have a complete set
+        int max = props.keySet().size()
+        for (i in 1 .. max) {
+            assert props.containsKey(i as String) : "Missing mapping for iteration: ${i}"
+        }
+        
         return props
     }
     



Mime
View raw message