def run_integration_tests(self, starting_time, previous_return_code_int, clean_at_the_end=True, restart_services_at_the_end=False):
    if (time.time() < (starting_time + 80)):
        self.gather_docker_information()
        self.log_info('Running integration tests')
        return_code_int = self.call_command(['docker-compose', 'up', '--build', '--no-recreate', '--exit-code-from', 'testrunner'], None, True, True)
        self.gather_docker_information()
        if clean_at_the_end:
            self.log_info('Stopping any running containers')
            self.call_command(['docker-compose', 'down', '--remove-orphans'], None, True, True)
            self.call_command(['docker-compose', 'kill'], None, True, True)
        if restart_services_at_the_end:
            self.call_command(['docker-compose', 'restart'], None, True, True)
        return return_code_int
    else:
        return previous_return_code_int
def run_integration_tests(self, starting_time, previous_return_code_int, clean_at_the_end=True, restart_services_at_the_end=False):
    if (time.time() < (starting_time + 80)):
        self.gather_docker_information()
        self.log_info('Running integration tests')
        return_code_int = self.call_command(['docker-compose', 'up', '--build', '--no-recreate', '--exit-code-from', 'testrunner'], None, True, True)
        self.gather_docker_information()
        if clean_at_the_end:
            self.log_info('Stopping any running containers')
            self.call_command(['docker-compose', 'down', '--remove-orphans'], None, True, True)
            self.call_command(['docker-compose', 'kill'], None, True, True)
        if restart_services_at_the_end:
            self.call_command(['docker-compose', 'restart'], None, True, True)
        return return_code_int
    else:
        return previous_return_code_int