Example #1
0
 def get_results_summary():
     """
     Get the status of the tests that were executed on the host and close
     the session where autotest was being executed.
     """
     output = session.cmd_output("cat results/*/status")
     try:
         results = scan_results.parse_results(output)
         # Report test results
         logging.info("Results (test, status, duration, info):")
         for result in results:
             logging.info(str(result))
         session.close()
         return results
     except Exception, e:
         logging.error("Error processing guest autotest results: %s", e)
         return None
Example #2
0
 def get_results_summary(guest_autotest_path):
     """
     Get the status of the tests that were executed on the host and close
     the session where autotest was being executed.
     """
     session.cmd("cd %s" % guest_autotest_path)
     output = session.cmd_output("cat results/*/status")
     try:
         results = scan_results.parse_results(output)
         # Report test results
         logging.info("Results (test, status, duration, info):")
         for result in results:
             logging.info(str(result))
         session.close()
         return results
     except Exception, e:
         logging.error("Error processing guest autotest results: %s", e)
         return None