def setUp(self): if not is_exe_in_path('bzr'): raise SkipTest('bzr not found in path') super(BazaarClientTests, self).setUp() self.set_user_home(os.path.join(self.testdata_dir, 'homedir')) self.options.parent_branch = None self.client = BazaarClient(options=self.options)
def setUp(self): # This should come before the call to super to prevent # unbalanced calls to setUp/tearDown if not is_exe_in_path('bzr'): raise SkipTest('bzr not found in path') super(BazaarClientTests, self).setUp() self.original_branch = self.chdir_tmp() self.child_branch = self.create_tmp_dir() self._run_bzr(['init', '.']) self._bzr_add_file_commit('foo.txt', FOO, 'initial commit') self._run_bzr([ 'branch', '--use-existing-dir', self.original_branch, self.child_branch ]) self.client = BazaarClient(options=self.options) self.options.parent_branch = None
def setUp(self): super(BazaarClientTests, self).setUp() if not is_exe_in_path('bzr'): raise SkipTest('bzr not found in path') self.set_user_home(os.path.join(self.testdata_dir, 'homedir')) self.orig_dir = os.getcwd() self.original_branch = self.chdir_tmp() self._run_bzr(["init", "."]) self._bzr_add_file_commit("foo.txt", FOO, "initial commit") self.child_branch = mktemp() self._run_bzr(["branch", self.original_branch, self.child_branch]) self.client = BazaarClient(options=self.options) os.chdir(self.orig_dir) self.options.parent_branch = None
def load_scmclients(options): global SCMCLIENTS from rbtools.clients.bazaar import BazaarClient from rbtools.clients.clearcase import ClearCaseClient from rbtools.clients.cvs import CVSClient from rbtools.clients.git import GitClient from rbtools.clients.mercurial import MercurialClient from rbtools.clients.perforce import PerforceClient from rbtools.clients.plastic import PlasticClient from rbtools.clients.svn import SVNClient SCMCLIENTS = [ BazaarClient(options=options), CVSClient(options=options), ClearCaseClient(options=options), GitClient(options=options), MercurialClient(options=options), PerforceClient(options=options), PlasticClient(options=options), SVNClient(options=options), ]
def setUp(self): super(BazaarClientTests, self).setUp() if not self.is_exe_in_path("bzr"): raise SkipTest("bzr not found in path") self.orig_dir = os.getcwd() self.original_branch = self.chdir_tmp() self._bzr_cmd(["init", "."]) self._bzr_add_file_commit("foo.txt", FOO, "initial commit") self.child_branch = mktemp() self._bzr_cmd(["branch", self.original_branch, self.child_branch]) self.client = BazaarClient(options=self.options) os.chdir(self.orig_dir) self.user_config = {} self.configs = [] self.client.user_config = self.user_config self.client.configs = self.configs self.options.parent_branch = None
def setUp(self): if not is_exe_in_path('bzr'): raise SkipTest('bzr not found in path') super(BazaarClientTests, self).setUp() self.set_user_home(os.path.join(self.testdata_dir, 'homedir')) self.original_branch = make_tempdir() self._run_bzr(['init', '.'], cwd=self.original_branch) self._bzr_add_file_commit('foo.txt', FOO, 'initial commit', cwd=self.original_branch) self.child_branch = make_tempdir() self._run_bzr([ 'branch', '--use-existing-dir', self.original_branch, self.child_branch ], cwd=self.original_branch) self.client = BazaarClient(options=self.options) self.options.parent_branch = None