Commit e0f09a93 authored by Rafael Monnerat's avatar Rafael Monnerat

Add more verbose for Test Agent

This changes improve the log readability in order to identify when a test
start and stops (tears down.)
parent 7e87bf53
...@@ -254,6 +254,7 @@ class SoftwareReleaseTester(RPCRetry): ...@@ -254,6 +254,7 @@ class SoftwareReleaseTester(RPCRetry):
""" """
Interrupt a running test sequence, putting it in idle state. Interrupt a running test sequence, putting it in idle state.
""" """
self._logger.info('Invoking TearDown for %s@%s' % self.url, self.name)
if self.request_kw is not None: if self.request_kw is not None:
self.destroy() self.destroy()
self.uninstall() self.uninstall()
...@@ -386,6 +387,7 @@ def main(): ...@@ -386,6 +387,7 @@ def main():
ran_test_set = set() ran_test_set = set()
running_test_dict = {} running_test_dict = {}
more_tests = True more_tests = True
logger.info('Starting Test Agent run %s ' % node_title)
while True: while True:
# Get up to parallel_task_count tasks to execute # Get up to parallel_task_count tasks to execute
while len(running_test_dict) < parallel_task_count and \ while len(running_test_dict) < parallel_task_count and \
...@@ -453,7 +455,7 @@ def main(): ...@@ -453,7 +455,7 @@ def main():
try: try:
deadline = tester.tic(now) deadline = tester.tic(now)
except Exception: except Exception:
logger.exception('test failed') logger.exception('Test execution fail for %s' % (section))
test_line.stop( test_line.stop(
test_count=1, test_count=1,
error_count=1, error_count=1,
...@@ -472,7 +474,7 @@ def main(): ...@@ -472,7 +474,7 @@ def main():
logger.info('%r', tester) logger.info('%r', tester)
if deadline is None: if deadline is None:
# TODO: report how long each step took. # TODO: report how long each step took.
logger.info('Finished !') logger.info('Test execution finished for %s' % (section))
test_line.stop( test_line.stop(
test_count=1, test_count=1,
error_count=0, error_count=0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment