commit
00f9620d32
@ -8,6 +8,7 @@
|
|||||||
# Distribute under GPLv2 or GPLv3
|
# Distribute under GPLv2 or GPLv3
|
||||||
|
|
||||||
import cmdln
|
import cmdln
|
||||||
|
import datetime
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
@ -170,19 +171,22 @@ class ToTestBase(object):
|
|||||||
url = self.api.makeurl(['build', project, '_result'], {'code': 'failed'})
|
url = self.api.makeurl(['build', project, '_result'], {'code': 'failed'})
|
||||||
f = self.api.retried_GET(url)
|
f = self.api.retried_GET(url)
|
||||||
root = ET.parse(f).getroot()
|
root = ET.parse(f).getroot()
|
||||||
|
ready = True
|
||||||
for repo in root.findall('result'):
|
for repo in root.findall('result'):
|
||||||
if repo.get('repository') == 'ports':
|
# ignore ports. 'factory' is used by arm for repos that are not
|
||||||
|
# meant to use the totest manager.
|
||||||
|
if repo.get('repository') in ('ports', 'factory'):
|
||||||
continue
|
continue
|
||||||
# ignore 32bit for now. We're only interesed in aarch64 here
|
# ignore 32bit for now. We're only interesed in aarch64 here
|
||||||
if repo.get('arch') in ('armv6l', 'armv7l'):
|
if repo.get('arch') in ('armv6l', 'armv7l'):
|
||||||
continue
|
continue
|
||||||
if repo.get('dirty', '') == 'true':
|
if repo.get('dirty', '') == 'true':
|
||||||
print repo.get('project'), repo.get('repository'), repo.get('arch'), 'dirty'
|
print repo.get('project'), repo.get('repository'), repo.get('arch'), 'dirty'
|
||||||
return False
|
ready = False
|
||||||
if repo.get('code') not in codes:
|
if repo.get('code') not in codes:
|
||||||
print repo.get('project'), repo.get('repository'), repo.get('arch'), repo.get('code')
|
print repo.get('project'), repo.get('repository'), repo.get('arch'), repo.get('code')
|
||||||
return False
|
ready = False
|
||||||
return True
|
return ready
|
||||||
|
|
||||||
def maxsize_for_package(self, package):
|
def maxsize_for_package(self, package):
|
||||||
if re.match(r'.*-mini-.*', package):
|
if re.match(r'.*-mini-.*', package):
|
||||||
@ -550,6 +554,7 @@ class CommandlineInterface(cmdln.Cmdln):
|
|||||||
except ExTimeout:
|
except ExTimeout:
|
||||||
pass
|
pass
|
||||||
signal.alarm(0)
|
signal.alarm(0)
|
||||||
|
self.logger.info("recheck at %s"%datetime.datetime.now().isoformat())
|
||||||
continue
|
continue
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user