def setup_chain(self):
    self.log.info(('Initializing test directory ' + self.options.tmpdir))
    if self.setup_clean_chain:
        self._initialize_chain_clean(self.options.tmpdir, self.num_nodes)
    else:
        self._initialize_chain(self.options.tmpdir, self.num_nodes, self.options.cachedir)
def setup_chain(self):
    self.log.info(('Initializing test directory ' + self.options.tmpdir))
    if self.setup_clean_chain:
        self._initialize_chain_clean(self.options.tmpdir, self.num_nodes)
    else:
        self._initialize_chain(self.options.tmpdir, self.num_nodes, self.options.cachedir)