Esempio 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)
Esempio 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)
Esempio 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()
Esempio 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()
Esempio 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()
Esempio 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()
Esempio 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()
Esempio 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()
Esempio n. 9
0
 def tearDownClass(cls):
     SignerTestCase.tearDownClass()
     if os.path.exists(cls.mdx):
         os.unlink(cls.mdx)
Esempio 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)