Anonymous avatar Anonymous committed f96e046

Rsync the coverage rc file so remote testing same as local.

Comments (0)

Files changed (3)

 installed.  This is needed since the plugin must be registered through
 setuptools / distribute for pytest to start the plugin on the slave.
 
-Currently the coverage rc file is not rsynced to slaves which can
-result in different behaviour on the slaves.  Use command line options
-for the time being.
-
 
 Acknowledgements
 ----------------
 installed.  This is needed since the plugin must be registered through
 setuptools / distribute for pytest to start the plugin on the slave.
 
-Currently the coverage rc file is not rsynced to slaves which can
-result in different behaviour on the slaves.  Use command line options
-for the time being.
-
 
 Acknowledgements
 ----------------
         self.data_files = {}
         self.failed_slaves = []
 
+        if session.config.getvalue('cov_config'):
+            config_file = os.path.realpath(session.config.getvalue('cov_config_file'))
+            if os.path.exists(config_file):
+                self.config.option.rsyncdir.append(config_file)
+
     def configure_node(self, node):
         import socket
         node.slaveinput['cov_master_host'] = socket.gethostname()
 import setuptools
 
 setuptools.setup(name='pytest-cov',
-                 version='0.8',
+                 version='0.9',
                  description='py.test plugin for coverage reporting with support for both centralised and distributed testing',
                  long_description=open('README.txt').read().strip(),
                  author='Meme Dough',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.