summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/software/test/rpmcache.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/software/test/rpmcache.py b/src/software/test/rpmcache.py
index 153f657..ff239f4 100644
--- a/src/software/test/rpmcache.py
+++ b/src/software/test/rpmcache.py
@@ -64,6 +64,9 @@ RE_PKG_INFO = re.compile(
r'^Release\s*:\s*(?P<rel>[^\s]+)\s+.*?'
r'^Size\s*:\s*(?P<size>\d+(\.\d+)?)( *(?P<units>[kMG]))?',
re.MULTILINE | re.DOTALL | re.IGNORECASE)
+# matching packages won't be selected for dangerous tests
+RE_AVAILABLE_EXCLUDE = re.compile(
+ r'^(kernel|tog-pegasus|sblim|openlmi).*')
# Maximum number of packages, that will be selected for testing / 2
# There are 2 sets of test packages (safe and dangerous). When running
@@ -144,7 +147,8 @@ def _filter_duplicates(installed, avail_str):
continue
if prev_match and prev_match.group('name') != match.group('name'):
if ( len(cur_package_matches) > 1
- and not cur_package_matches[0].group('name') in installed):
+ and not cur_package_matches[0].group('name') in installed
+ and not RE_AVAILABLE_EXCLUDE.match(match.group('name'))):
pkgs = [ _match2pkg(m) for m in cur_package_matches ]
dups_list.append(pkgs)
cur_package_matches = []