Exemplo n.º 1
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     try:
         requests.get("http://127.0.0.1:%s/shutdown" % cls.port)
     except Exception, ex:
         from traceback import print_exc
         print_exc(ex)
Exemplo n.º 2
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     try:
         requests.get("http://127.0.0.1:%s/shutdown" % cls.port)
     except Exception, ex:
         from traceback import print_exc
         print_exc(ex)
Exemplo n.º 3
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     requests.get("http://127.0.0.1:8080/shutdown")
     if os.path.exists(cls.mdx):
         os.unlink(cls.mdx)
     if os.path.exists(cls.pidfile):
         os.unlink(cls.pidfile)
     cls.pyffd_thread.join()
Exemplo n.º 4
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     requests.get("http://127.0.0.1:8080/shutdown")
     if os.path.exists(cls.mdx):
         os.unlink(cls.mdx)
     if os.path.exists(cls.pidfile):
         os.unlink(cls.pidfile)
     cls.pyffd_thread.join()
Exemplo n.º 5
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     try:
         requests.get("http://127.0.0.1:%s/shutdown" % cls.port)
     except Exception as ex:
         from traceback import print_exc
         print_exc(ex)
     finally:
         if os.path.exists(cls.mdx):
             os.unlink(cls.mdx)
         if os.path.exists(cls.pidfile):
             os.unlink(cls.pidfile)
         if os.path.exists(cls.logfile):
             os.unlink(cls.logfile)
     cls.pyffd_thread.join()
Exemplo n.º 6
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     try:
         requests.get("http://127.0.0.1:%s/shutdown" % cls.port)
     except Exception as ex:
         from traceback import print_exc
         print_exc(ex)
     finally:
         if os.path.exists(cls.mdx):
             os.unlink(cls.mdx)
         if os.path.exists(cls.pidfile):
             os.unlink(cls.pidfile)
         if os.path.exists(cls.logfile):
             os.unlink(cls.logfile)
     cls.pyffd_thread.join()
Exemplo n.º 7
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     try:
         requests.get("http://127.0.0.1:%s/shutdown" % cls.port)
         with open(cls.logfile) as fd:
             print ("+++ DEBUG log +++")
             print("\n".join(fd.readlines()))
     except Exception as ex:
         from traceback import print_exc
         print_exc(ex)
     finally:
         if os.path.exists(cls.mdx):
             os.unlink(cls.mdx)
         if os.path.exists(cls.pidfile):
             os.unlink(cls.pidfile)
         if os.path.exists(cls.logfile):
             os.unlink(cls.logfile)
     cls.pyffd_thread.join()
Exemplo n.º 8
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     try:
         requests.get("http://127.0.0.1:%s/shutdown" % cls.port)
         with open(cls.logfile) as fd:
             print("+++ DEBUG log +++")
             print("\n".join(fd.readlines()))
     except Exception as ex:
         from traceback import print_exc
         print_exc(ex)
     finally:
         if os.path.exists(cls.mdx):
             os.unlink(cls.mdx)
         if os.path.exists(cls.pidfile):
             os.unlink(cls.pidfile)
         if os.path.exists(cls.logfile):
             os.unlink(cls.logfile)
     cls.pyffd_thread.join()
Exemplo n.º 9
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     if os.path.exists(cls.mdx):
         os.unlink(cls.mdx)
Exemplo n.º 10
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     if os.path.exists(cls.mdx):
         os.unlink(cls.mdx)
     if os.path.exists(config.local_copy_dir):
         shutil.rmtree(config.local_copy_dir)