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