def stop()

in pytest_rally/elasticsearch.py [0:0]


    def stop(self):
        cmd = f"esrally stop --installation-id={self.installation_id}"
        self.logger.info("Stopping Elasticsearch: [%s]", cmd)
        if self.debug:
            return
        else:
            try:
                subprocess.run(shlex.split(cmd))
            except subprocess.CalledProcessError as e:
                raise AssertionError("Failed to stop Elasticsearch test cluster.", e)