예제 #1
0
 def after_run(self):
     httpclient.cleanup_libcurl()
     from miro.test import framework
     framework.clean_up_temp_files()
     if self.failed_fast:
         self.stream.write(
             "Stopped on first failure!  Not all tests were run!\n")
     for mem in framework.skipped_tests:
         self.stream.write("Skipped: %s\n" % mem)
예제 #2
0
 def after_run(self):
     httpclient.cleanup_libcurl()
     from miro.test import framework
     framework.clean_up_temp_files()
     if self.failed_fast:
         self.stream.write(
             "Stopped on first failure!  Not all tests were run!\n")
     for mem in framework.skipped_tests:
         self.stream.write("Skipped: %s\n" % mem)
예제 #3
0
파일: controller.py 프로젝트: ndim/miro
 def downloader_shutdown(self):
     logging.info("Shutting down libCURL thread")
     httpclient.stop_thread()
     httpclient.cleanup_libcurl()
     logging.info("Writing HTTP passwords")
     httpauth.write_to_file()
     logging.info("Shutting down event loop thread")
     eventloop.shutdown()
     logging.info("Saving cached ItemInfo objects")
     logging.info("Commiting DB changes")
     app.db.finish_transaction()
     logging.info("Closing Database...")
     if app.db is not None:
         app.db.close()
     signals.system.shutdown()
예제 #4
0
 def downloader_shutdown(self):
     logging.info("Shutting down libCURL thread")
     httpclient.stop_thread()
     httpclient.cleanup_libcurl()
     logging.info("Writing HTTP passwords")
     httpauth.write_to_file()
     logging.info("Shutting down event loop thread")
     eventloop.shutdown()
     logging.info("Saving cached ItemInfo objects")
     logging.info("Commiting DB changes")
     app.db.finish_transaction()
     logging.info("Closing Database...")
     if app.db is not None:
         app.db.close()
     signals.system.shutdown()
예제 #5
0
파일: daemon.py 프로젝트: kmshi/miro
 def handle_close(self, type_):
     if self.shutdown:
         return
     logging.info("downloader: quitting")
     self.shutdown = True
     eventloop.shutdown()
     from miro.dl_daemon import download
     download.shutdown()
     logging.info("Cleaning up libcurl")
     httpclient.stop_thread()
     httpclient.cleanup_libcurl()
     import threading
     for thread in threading.enumerate():
         if thread != threading.currentThread() and not thread.isDaemon():
             logging.info("joining with %s", thread)
             thread.join()
     logging.info("handle_close() done")
예제 #6
0
파일: daemon.py 프로젝트: cool-RR/Miro
 def handle_close(self, type_):
     if self.shutdown:
         return
     logging.info("downloader: quitting")
     self.shutdown = True
     eventloop.shutdown()
     logging.info("Cleaning up libcurl")
     httpclient.stop_thread()
     httpclient.cleanup_libcurl()
     from miro.dl_daemon import download
     download.shutdown()
     import threading
     for thread in threading.enumerate():
         if thread != threading.currentThread() and not thread.isDaemon():
             logging.info("joining with %s", thread)
             thread.join()
     logging.info("handle_close() done")
예제 #7
0
파일: __init__.py 프로젝트: cool-RR/Miro
 def after_run(self):
     httpclient.cleanup_libcurl()
     from miro.test import framework
     framework.clean_up_temp_files()
예제 #8
0
파일: __init__.py 프로젝트: nxmirrors/miro
 def after_run(self):
     httpclient.cleanup_libcurl()
     from miro.test import framework
     framework.clean_up_temp_files()
     for mem in framework.skipped_tests:
         print "Skipped: %s" % mem