--- hooks/post-repo-update/hook.py | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/hooks/post-repo-update/hook.py b/hooks/post-repo-update/hook.py index 77024d4..646dcef 100644 --- a/hooks/post-repo-update/hook.py +++ b/hooks/post-repo-update/hook.py @@ -3,7 +3,19 @@ # # Copyright 2009, Red Hat, Inc. # -# GPLv2+ boilerplate goes here +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Author: Will Woods wwoods@redhat.com
@@ -23,7 +35,9 @@ def extend_parser(parser): return parser
def process_testlist(opts, args, testlist): - if not opts.name.lower().startswith('rawhide'): + # Only advertise rats_sanity for branched* and rawhide* tests + name = opts.name.lower() + if not (name.startswith('rawhide') or name.startswith('branched')) if 'rats_sanity' in testlist: testlist.remove('rats_sanity') return testlist
Looks pretty obviously correct; go ahead and apply to master.
-w
On Wed, 2010-04-28 at 10:46 -0400, James Laska wrote:
hooks/post-repo-update/hook.py | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/hooks/post-repo-update/hook.py b/hooks/post-repo-update/hook.py index 77024d4..646dcef 100644 --- a/hooks/post-repo-update/hook.py +++ b/hooks/post-repo-update/hook.py @@ -3,7 +3,19 @@ # # Copyright 2009, Red Hat, Inc. # -# GPLv2+ boilerplate goes here +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Author: Will Woods wwoods@redhat.com
@@ -23,7 +35,9 @@ def extend_parser(parser): return parser
def process_testlist(opts, args, testlist):
- if not opts.name.lower().startswith('rawhide'):
- # Only advertise rats_sanity for branched* and rawhide* tests
- name = opts.name.lower()
- if not (name.startswith('rawhide') or name.startswith('branched')) if 'rats_sanity' in testlist: testlist.remove('rats_sanity') return testlist
autoqa-devel@lists.fedorahosted.org