Esempio n. 1
0
 def setUp(self):
   TestCaseUtils.setUp(self)
   unittest.TestCase.setUp(self)
   self.url = 'git://foo'
   self.root_dir = tempfile.mkdtemp()
   self.relpath = '.'
   self.base_path = join(self.root_dir, self.relpath)
   self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path)
   StdoutCheck.setUp(self)
Esempio n. 2
0
 def setUp(self):
   TestCaseUtils.setUp(self)
   unittest.TestCase.setUp(self)
   self.url = 'git://foo'
   self.root_dir = tempfile.mkdtemp()
   self.relpath = '.'
   self.base_path = join(self.root_dir, self.relpath)
   self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path)
   StdoutCheck.setUp(self)
   self._original_GitBinaryExists = gclient_scm.GitWrapper.BinaryExists
   self._original_SVNBinaryExists = gclient_scm.SVNWrapper.BinaryExists
   gclient_scm.GitWrapper.BinaryExists = staticmethod(lambda : True)
   gclient_scm.SVNWrapper.BinaryExists = staticmethod(lambda : True)
Esempio n. 3
0
 def setUp(self):
   TestCaseUtils.setUp(self)
   unittest.TestCase.setUp(self)
   self.url = 'git://foo'
   # The .git suffix allows gclient_scm to recognize the dir as a git repo
   # when cloning it locally
   self.root_dir = tempfile.mkdtemp('.git')
   self.relpath = '.'
   self.base_path = join(self.root_dir, self.relpath)
   self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path)
   StdoutCheck.setUp(self)
   self._original_GitBinaryExists = gclient_scm.GitWrapper.BinaryExists
   gclient_scm.GitWrapper.BinaryExists = staticmethod(lambda : True)
Esempio n. 4
0
 def setUp(self):
   TestCaseUtils.setUp(self)
   unittest.TestCase.setUp(self)
   self.url = 'git://foo'
   # The .git suffix allows gclient_scm to recognize the dir as a git repo
   # when cloning it locally
   self.root_dir = tempfile.mkdtemp('.git')
   self.relpath = '.'
   self.base_path = join(self.root_dir, self.relpath)
   self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path)
   StdoutCheck.setUp(self)
   self._original_GitBinaryExists = gclient_scm.GitWrapper.BinaryExists
   self._original_SVNBinaryExists = gclient_scm.SVNWrapper.BinaryExists
   gclient_scm.GitWrapper.BinaryExists = staticmethod(lambda : True)
   gclient_scm.SVNWrapper.BinaryExists = staticmethod(lambda : True)