Included change scarabeus did while playing with test-suite, making sure that
all tests (currently just one) passes.
This commit is contained in:
Michal Hrusecky 2014-02-05 15:34:21 +01:00 committed by Michal Hrusecky
parent d8b593c911
commit 9368e016cf

View File

@ -9,6 +9,9 @@ from osc import cmdln
from osc import conf
from osc import commandline
from osc.core import *
import osc
OSC_STAGING_VERSION='0.0.1'
def _print_version(self):
@ -16,6 +19,20 @@ def _print_version(self):
print '%s'%(self.OSC_STAGING_VERSION)
quit(0)
def list_staging_projects(apiurl):
"""
list all current running staging projects
"""
projects = []
url = makeurl(apiurl, ['search', 'project', 'id?match=starts-with(@name,\'openSUSE:Factory:Staging:\')'])
projxml = http_GET(url)
root = ET.parse(projxml).getroot()
for val in root.findall('project'):
projects.append(val.get('name'))
return projects
# Get last build results (optionally only for specified repo/arch)
# Works even when rebuild is triggered
def _get_build_res(opts, prj, repo=None, arch=None):