Esempio n. 1
0
 def tearDown(self):
   StdoutCheck.tearDown(self)
   TestCaseUtils.tearDown(self)
   unittest.TestCase.tearDown(self)
   rmtree(self.root_dir)
   gclient_scm.GitWrapper.BinaryExists = self._original_GitBinaryExists
   gclient_scm.SVNWrapper.BinaryExists = self._original_SVNBinaryExists
Esempio n. 2
0
 def tearDown(self):
   try:
     rmtree(self.root_dir)
     StdoutCheck.tearDown(self)
     TestCaseUtils.tearDown(self)
     unittest.TestCase.tearDown(self)
   finally:
     # TODO(maruel): Use auto_stub.TestCase.
     gclient_scm.GitWrapper.BinaryExists = self._original_GitBinaryExists
Esempio n. 3
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. 4
0
 def tearDown(self):
   try:
     rmtree(self.root_dir)
     StdoutCheck.tearDown(self)
     TestCaseUtils.tearDown(self)
     unittest.TestCase.tearDown(self)
   finally:
     # TODO(maruel): Use auto_stub.TestCase.
     gclient_scm.GitWrapper.BinaryExists = self._original_GitBinaryExists
     gclient_scm.SVNWrapper.BinaryExists = self._original_SVNBinaryExists
Esempio n. 5
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. 6
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. 7
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)
Esempio n. 8
0
 def tearDown(self):
   StdoutCheck.tearDown(self)
   TestCaseUtils.tearDown(self)
   unittest.TestCase.tearDown(self)
   rmtree(self.root_dir)