[LNT] r232213 - Make some small fixes to appease the tests.
Michael Gottesman
mgottesman at apple.com
Fri Mar 13 14:01:14 PDT 2015
Author: mgottesman
Date: Fri Mar 13 16:01:14 2015
New Revision: 232213
URL: http://llvm.org/viewvc/llvm-project?rev=232213&view=rev
Log:
Make some small fixes to appease the tests.
Modified:
lnt/trunk/lnt/server/db/testsuitedb.py
lnt/trunk/lnt/server/db/v4db.py
Modified: lnt/trunk/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/testsuitedb.py?rev=232213&r1=232212&r2=232213&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Fri Mar 13 16:01:14 2015
@@ -61,7 +61,7 @@ class TestSuiteDB(object):
class Machine(self.base, ParameterizedMixin):
__tablename__ = db_key_name + '_Machine'
- DEFAULT_BASELINE_REVISION = self.v4db.config.baseline_revision
+ DEFAULT_BASELINE_REVISION = self.v4db.baseline_revision
fields = self.machine_fields
id = Column("ID", Integer, primary_key=True)
Modified: lnt/trunk/lnt/server/db/v4db.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/v4db.py?rev=232213&r1=232212&r2=232213&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/v4db.py (original)
+++ lnt/trunk/lnt/server/db/v4db.py Fri Mar 13 16:01:14 2015
@@ -67,13 +67,15 @@ class V4DB(object):
for name in self:
yield name,self[name]
- def __init__(self, path, config, baseline_revision, echo=False):
+ def __init__(self, path, config, baseline_revision=0, echo=False):
# If the path includes no database type, assume sqlite.
if lnt.server.db.util.path_has_no_database_type(path):
path = 'sqlite:///' + path
self.path = path
self.config = config
+ self.baseline_revision = baseline_revision
+
with V4DB._engine_lock:
if path not in V4DB._engine:
V4DB._engine[path] = sqlalchemy.create_engine(path, echo=echo)
More information about the llvm-commits
mailing list