Пример #1
0
 def check_build_status(self, build):
     if "RHEL5" in build or "RHEL-6.6" in build:
         pass
     else:
         # check STATUS file, if FINISHED, begin installing
         status_file = constants.get_build_tree(build) + "/" + build + "/" + "STATUS"
         logger.info("Status file is : %s." % status_file)
         while True:
             if "FINISHED" in htmlsource.get_html_source(status_file):
                 logger.info("Build %s is in Finished status, going on ..." % build)
                 break
             else:
                 time.sleep(60)
                 logger.info("Build %s is not in Finished status yet, wait 1 minute ..." % build)
Пример #2
0
 def check_build_status(self, build):
     if "RHEL5" in build or "RHEL-6.6" in build:
         pass
     else:
         # check STATUS file, if FINISHED, begin installing
         status_file = constants.get_build_tree(
             build) + "/" + build + "/" + "STATUS"
         logger.info("Status file is : %s." % status_file)
         while True:
             if "FINISHED" in htmlsource.get_html_source(status_file):
                 logger.info(
                     "Build %s is in Finished status, going on ..." % build)
                 break
             else:
                 time.sleep(60)
                 logger.info(
                     "Build %s is not in Finished status yet, wait 1 minute ..."
                     % build)
Пример #3
0
	def parse(self, product_name): 
		self.product_name = product_name
		self.build_url = constants.get_build_tree(product_name)
		self.feed(htmlsource.get_html_source(self.build_url))
		self.close()
		return self.build_lists