SVN: zope.testing/branches/benji-parallelize-subprocesses/src/zope/testing/testrunner/runner.py checkpoint: all tests pass but had to temporarily disable unit-tests-first

Benji York <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <20080704143517.2E93B39A31__24017.8395681598$1215182215$gmane$org@mail.zope.org>
Log message for revision 88003:
  checkpoint: all tests pass but had to temporarily disable unit-tests-first
  functionality
  

Changed:
  U   zope.testing/branches/benji-parallelize-subprocesses/src/zope/testing/testrunner/runner.py

-=-
Modified: zope.testing/branches/benji-parallelize-subprocesses/src/zope/testing/testrunner/runner.py
===================================================================
--- zope.testing/branches/benji-parallelize-subprocesses/src/zope/testing/testrunner/runner.py	2008-07-04 14:24:11 UTC (rev 88002)
+++ zope.testing/branches/benji-parallelize-subprocesses/src/zope/testing/testrunner/runner.py	2008-07-04 14:35:16 UTC (rev 88003)
@@ -209,7 +209,7 @@
         should_resume = False
 
         while layers_to_run:
-            layer_name, layer, tests = layers_to_run.pop(0)
+            layer_name, layer, tests = layers_to_run[0]
             for feature in self.features:
                 feature.layer_setup(layer)
             try:
@@ -223,6 +223,7 @@
                     should_resume = True
                     break
 
+            layers_to_run.pop(0)
             if self.options.processes > 1:
                 should_resume = True
                 break
@@ -642,10 +643,10 @@
         if layer not in seen:
             seen[layer] = 1
             if layer in layers:
-                if (name_from_layer(layer) ==
-                    'zope.testing.testrunner.layer.UnitTests'):
-                    result.insert(0, layer)
-                else:
+#                if (name_from_layer(layer) ==
+#                    'zope.testing.testrunner.layer.UnitTests'):
+#                    result.insert(0, layer)
+#                else:
                     result.append(layer)
 
     return result
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.