Esempio n. 1
0
 def tearDown(self):
     try:
         os.kill(int(open(self.pidfile).read().strip()), signal.SIGKILL)
         os.unlink(self.pidfile)
     except (OSError, IOError):
         pass
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
Esempio n. 2
0
 def setUp(self):
     CompatTestCase.setUp(self)
     DulwichClientTestBase.setUp(self)
     if check_for_daemon(limit=1):
         raise TestSkipped('git-daemon was already running on port %s' %
                           protocol.TCP_GIT_PORT)
     fd, self.pidfile = tempfile.mkstemp(prefix='dulwich-test-git-client',
                                         suffix=".pid")
     os.fdopen(fd).close()
     run_git_or_fail(
         ['daemon', '--verbose', '--export-all',
          '--pid-file=%s' % self.pidfile, '--base-path=%s' % self.gitroot,
          '--detach', '--reuseaddr', '--enable=receive-pack',
          '--listen=localhost', self.gitroot], cwd=self.gitroot)
     if not check_for_daemon():
         raise TestSkipped('git-daemon failed to start')
Esempio n. 3
0
 def tearDown(self):
     CompatTestCase.tearDown(self)
     tear_down_repo(self._repo)
Esempio n. 4
0
 def setUp(self):
     CompatTestCase.setUp(self)
     self._repo = import_repo('server_new.export')
Esempio n. 5
0
 def tearDown(self):
     WebTests.tearDown(self)
     CompatTestCase.tearDown(self)
Esempio n. 6
0
 def setUp(self):
     WebTests.setUp(self)
     CompatTestCase.setUp(self)
Esempio n. 7
0
 def tearDown(self):
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
Esempio n. 8
0
 def setUp(self):
     CompatTestCase.setUp(self)
     DulwichClientTestBase.setUp(self)
Esempio n. 9
0
 def tearDown(self):
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
     client.get_ssh_vendor = self.real_vendor
Esempio n. 10
0
 def setUp(self):
     CompatTestCase.setUp(self)
     DulwichClientTestBase.setUp(self)
     self.real_vendor = client.get_ssh_vendor
     client.get_ssh_vendor = TestSSHVendor
Esempio n. 11
0
 def tearDown(self):
     ServerTests.tearDown(self)
     CompatTestCase.tearDown(self)
Esempio n. 12
0
 def setUp(self):
     ServerTests.setUp(self)
     CompatTestCase.setUp(self)