5
0
mirror of https://github.com/odoo/runbot.git synced 2025-03-24 03:46:00 +07:00
runbot/runbot_builder/tester.py

17 lines
487 B
Python
Raw Normal View History

#!/usr/bin/python3
from tools import RunbotClient, run
import logging
_logger = logging.getLogger(__name__)
class TesterClient(RunbotClient):
def loop_turn(self):
_logger.info('='*50)
_logger.info('Testing: %s', self.env['runbot.build'].search_count([('local_state', '=', 'testing')]))
_logger.info('Pending: %s', self.env['runbot.build'].search_count([('local_state', '=', 'pending')]))
return 10
if __name__ == '__main__':
run(TesterClient)