updated tests
This commit is contained in:
parent
d1ab4ed287
commit
7eb264eb4c
3 changed files with 67 additions and 36 deletions
|
|
@ -43,6 +43,8 @@ class SaveFailedTreeTask(tasks.BaseTaskHandler):
|
|||
read_config()
|
||||
|
||||
brinfo = self.session.getBuildroot(buildrootID)
|
||||
if brinfo is None:
|
||||
raise koji.GenericError("Nonexistent buildroot: %s" % buildrootID)
|
||||
host_id = self.session.host.getHost()['id']
|
||||
if brinfo['host_id'] != host_id:
|
||||
raise koji.GenericError("Task is run on wrong builder")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue