From 39676701fc6c5dedde2248178b16b394e90d48b9 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 7 Jan 2012 09:19:03 +0000 Subject: Checkpoint. rpkic and yamltest mostly work, but irdbd is still acting weird. svn path=/branches/tk100/; revision=4146 --- rpkid/tests/sql-cleaner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpkid/tests/sql-cleaner.py') diff --git a/rpkid/tests/sql-cleaner.py b/rpkid/tests/sql-cleaner.py index 5d11781f..5db122e1 100644 --- a/rpkid/tests/sql-cleaner.py +++ b/rpkid/tests/sql-cleaner.py @@ -29,10 +29,10 @@ for name in ("rpkid", "irdbd", "pubd"): password = cfg.get("%s_sql_password" % name, "fnord") schema = [] - for line in getattr(rpki.sql_schemas, name).splitlines(): + for line in getattr(rpki.sql_schemas, name, "").splitlines(): schema.extend(line.partition("--")[0].split()) schema = " ".join(schema).strip(";").split(";") - schema = [statement.strip() for statement in schema if "DROP TABLE" not in statement] + schema = [statement.strip() for statement in schema if statement and "DROP TABLE" not in statement] for i in xrange(12): -- cgit v1.2.3