Commits

eduardo schettino  committed d2c0119

fix for xdist parallel running "-n"

  • Participants
  • Parent commits 75f4044

Comments (0)

Files changed (2)

+
+=======
+Changes
+=======
+
+0.2.0
+=========
+
+
+
+0.1.0 (*2011-04-25*)
+====================
+
+- initial release

File pytest_incremental.py

 
 
 def pytest_configure(config):
-    if config.option.incremental or config.option.list_outdated:
+    if (config.option.incremental or
+        config.option.list_outdated or
+        config.option.list_dependencies
+        ):
         config._incremental = IncrementalPlugin()
         config.pluginmanager.register(config._incremental)
 
 
+
 def pytest_unconfigure(config):
     incremental_plugin = getattr(config, '_incremental', None)
     if incremental_plugin:
         self.run = not any((self.list_outdated, self.list_dependencies))
 
         self._check_cmd_options(session.config)
-        if self.type == "slave":
-            return
         if self.pkg_folders:
             for pkg in self.pkg_folders:
                 self.py_files.extend(self._get_pkg_modules(pkg))
             return
         elif self.type == "master":
             self.task_list = self._load_tasks(self.test_files)
+            # we need to make sure task have all calc_dep calculated
+            doit_run(self.DB_FILE, self.task_list, StringIO.StringIO(),
+                     ['outdated'],
+                     continue_=True, reporter=OutdatedReporter)
 
         # debug messages
         # print