[pkgset] Add tests for Koji source

This patch also fixes the bug where using a preconfigured Koji event
would not actually work and instead the latest event would be used.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-04-21 12:20:31 +02:00
parent 2abf9511c9
commit 01422983cb
2 changed files with 245 additions and 0 deletions

View file

@ -119,6 +119,7 @@ def get_koji_event_info(compose, koji_wrapper):
koji_event = koji_proxy.getEvent(compose.koji_event)
compose.log_info("Setting koji event to a custom value: %s" % compose.koji_event)
json.dump(koji_event, open(event_file, "w"))
return koji_event
msg = "Getting koji event"
if compose.DEBUG and os.path.exists(event_file):