Exemplo n.º 1
0
    def run_clients(self):
        """
        Run the client on all nodes.
        """
        with nested(make_bootstrap_pom(), make_bootstrap_client()) \
                as (pom, bclient):
            for node in self.nodes.values():
                with node.connection_required():
                    for upload in self.uploads:
                        node.put(*upload)
                    node.put(pom.name, 'bootstrap.pom')
                    node.put(bclient.name, 'penchy_bootstrap')

                    node.execute_penchy(' '.join(
                        self.bootstrap_args + [os.path.basename(self.job_file),
                            'config.py', node.setting.identifier]))
Exemplo n.º 2
0
 def test_make_bootstrap_client(self):
     with util.make_bootstrap_client() as bclient:
         self.assertTrue(os.path.exists(bclient.name))