[PATCH 7/7] Use repoinfo module directly (not through autoqa.koji_utils). Don't exclude the requested tag even if it is in -testing
James Laska
jlaska at redhat.com
Fri Sep 17 20:00:30 UTC 2010
---
tests/upgradepath/upgradepath.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/upgradepath/upgradepath.py b/tests/upgradepath/upgradepath.py
index 1811aba..cecf439 100755
--- a/tests/upgradepath/upgradepath.py
+++ b/tests/upgradepath/upgradepath.py
@@ -24,6 +24,7 @@ import operator
import autoqa.koji_utils
import autoqa.util
import rpmUtils.miscutils
+from autoqa.repoinfo import repoinfo
import autoqa.util
from autoqa.test import AutoQATest
@@ -86,8 +87,12 @@ class upgradepath(AutoQATest):
def run_once(self, envrs, kojitag, **kwargs):
update_id = kwargs['name'] or kwargs['id']
- reponames = [reponame for reponame in autoqa.koji_utils.repoinfo.repos() if not reponame.endswith('-testing')]
- repotags = [autoqa.koji_utils.repoinfo.getrepo(reponame)['tag'] for reponame in reponames]
+ # Get a list of all repos we monitor
+ # FIXME - perhaps we should only query for 'active' repos
+ reponames = [reponame for reponame in repoinfo.repos()]
+ # Get a list of koji-tags For all stable repos (includes the requested kojitag)
+ repotags = [repoinfo.getrepo(reponame)['tag'] for reponame in reponames \
+ if not reponame.endswith('-testing') or repoinfo.getrepo(reponame)['tag'] == kojitag]
repotags.sort()
assert kojitag in repotags, 'Requested unsupported kojitag: %s' % kojitag
current_tag = repotags.index(kojitag)
--
1.7.2.3
More information about the autoqa-devel
mailing list