Commit 33dcd07c authored by Sebastien Robin's avatar Sebastien Robin

add more logs to follow erp5testnode work

parent 8a802eb4
......@@ -306,6 +306,8 @@ branch = %(branch)s
test_suite_portal = taskdistribution.TaskDistributor(portal_url, logger=DummyLogger(log))
test_suite_json = test_suite_portal.startTestSuite(config['test_node_title'])
test_suite_data = json.loads(test_suite_json)
log("Got following test suite data from master : %r" % \
(test_suite_data,))
#Clean-up test suites
self.checkOldTestSuite(test_suite_data)
for test_suite in test_suite_data:
......@@ -378,7 +380,9 @@ branch = %(branch)s
log("erp5testnode exception", exc_info=sys.exc_info())
raise
if (now-begin) < 120:
time.sleep(120 - (now-begin))
sleep_time = 120 - (now-begin)
log("End of processing, going to sleep %s" % sleep_time)
time.sleep(sleep_time)
finally:
# Nice way to kill *everything* generated by run process -- process
# groups working only in POSIX compilant systems
......
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