aboutsummaryrefslogtreecommitdiff
path: root/myrpki/yamltest.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2009-10-14 18:02:42 +0000
committerRob Austein <sra@hactrn.net>2009-10-14 18:02:42 +0000
commit64dfe8392a106f9d07ec52d9ba8a1aa24bd9d326 (patch)
tree6370f8540631166cfc0c2b5d3cc971726204d369 /myrpki/yamltest.py
parentcc47ad9099222c295a7d07f872f4a6c50c488404 (diff)
Clean up use of "pubd" SQL database in test scripts
svn path=/myrpki/yamltest.py; revision=2827
Diffstat (limited to 'myrpki/yamltest.py')
-rw-r--r--myrpki/yamltest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/myrpki/yamltest.py b/myrpki/yamltest.py
index cd951af1..9e349a0f 100644
--- a/myrpki/yamltest.py
+++ b/myrpki/yamltest.py
@@ -442,7 +442,10 @@ class allocation(object):
m = section_regexp.match(line)
if m:
section = m.group(1)
- if section is None or (self.is_hosted() and section in ("myirbe", "rpkid", "irdbd", "pubd", "rootd", "rootd_x509_extensions")):
+ if (section is None or
+ (self.is_hosted() and section in ("myirbe", "rpkid", "irdbd")) or
+ (not self.runs_pubd() and section == "pubd") or
+ (not self.is_root() and section in ("rootd", "rootd_x509_extensions"))):
continue
m = variable_regexp.match(line) if m is None else None
variable = m.group(1) if m else None