Commits

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',