Commit 6edd8ef1 authored by Charles Delort's avatar Charles Delort
Browse files

test

parent 57ffd017
......@@ -74,17 +74,17 @@ class ReferenceDbMgr:
sys.exit(-1)
if self.refSchemaVersion330:
print 'DEBUG: Create ReferenceDbMgr for 3.3.0 reference schema'
print('DEBUG: Create ReferenceDbMgr for 3.3.0 reference schema')
elif self.refSchemaVersion290:
print 'DEBUG: Create ReferenceDbMgr for 2.9.0 reference schema'
print('DEBUG: Create ReferenceDbMgr for 2.9.0 reference schema')
elif self.refSchemaVersion280:
print 'DEBUG: Create ReferenceDbMgr for 2.8.0 reference schema'
print('DEBUG: Create ReferenceDbMgr for 2.8.0 reference schema')
elif self.refSchemaVersion220:
print 'DEBUG: Create ReferenceDbMgr for 2.2.0 reference schema'
print('DEBUG: Create ReferenceDbMgr for 2.2.0 reference schema')
elif self.refSchemaVersion200:
print 'DEBUG: Create ReferenceDbMgr for 2.0.0 reference schema'
print('DEBUG: Create ReferenceDbMgr for 2.0.0 reference schema')
else:
print 'DEBUG: Create ReferenceDbMgr for 1.3.0 reference schema'
print('DEBUG: Create ReferenceDbMgr for 1.3.0 reference schema')
global cool
#print 'DEBUG: Import cool'
......@@ -185,8 +185,8 @@ class ReferenceDbMgr:
sys.exit(-1)
if self.refSchemaVersion330 and not self.svcVersion29x :
print 'ERROR: Cannot manage 3.3.0 reference schema',\
'using older software release', self.svcVersion
print('ERROR: Cannot manage 3.3.0 reference schema',\
'using older software release', self.svcVersion)
sys.exit(-1)
if ( self.svcVersion22x ):
......@@ -252,7 +252,7 @@ class ReferenceDbMgr:
def createReferenceDb(self,connectString):
if self.refSchemaVersion330:
print 'DEBUG: Create 3.3.0 reference database'
print('DEBUG: Create 3.3.0 reference database')
elif self.refSchemaVersion290:
print('DEBUG: Create 2.9.0 reference database')
elif self.refSchemaVersion280:
......@@ -987,8 +987,8 @@ class TestReferenceDb1RO( unittest.TestCase ):
if ( dbSchemaVersion == "1.3.0" ):
TestReferenceDb1RO.dbSchemaVersion200 = False
if self.mgr.refSchemaVersion330 :
print 'ERROR: TestReferenceDb1RO (3.3.0)',\
'cannot be executed on a 1.3.0 db'
print('ERROR: TestReferenceDb1RO (3.3.0)',\
'cannot be executed on a 1.3.0 db')
sys.exit(-1)
elif self.mgr.refSchemaVersion290 :
print('ERROR: TestReferenceDb1RO (2.9.0)',\
......@@ -1012,8 +1012,8 @@ class TestReferenceDb1RO( unittest.TestCase ):
elif ( dbSchemaVersion == "2.0.0" ):
TestReferenceDb1RO.dbSchemaVersion200 = True
if self.mgr.refSchemaVersion330 :
print 'DEBUG: Test 3.3.0 reference schema on a 2.0.0 db',\
'(R/O test)'
print('DEBUG: Test 3.3.0 reference schema on a 2.0.0 db',\
'(R/O test)')
elif self.mgr.refSchemaVersion290 :
print('DEBUG: Test 2.9.0 reference schema on a 2.0.0 db',\
'(R/O test)')
......@@ -2620,8 +2620,8 @@ class TestReferenceDb1RW( unittest.TestCase ):
if ( dbSchemaVersion == "1.3.0" ):
TestReferenceDb1RW.dbSchemaVersion200 = False
if self.mgr.refSchemaVersion330 :
print 'ERROR: TestReferenceDb1RW (3.3.0)',\
'cannot be executed on a 1.3.0 db'
print('ERROR: TestReferenceDb1RW (3.3.0)',\
'cannot be executed on a 1.3.0 db')
sys.exit(-1)
elif self.mgr.refSchemaVersion290 :
print('ERROR: TestReferenceDb1RW (2.9.0)',\
......@@ -2645,8 +2645,8 @@ class TestReferenceDb1RW( unittest.TestCase ):
elif ( dbSchemaVersion == "2.0.0" ):
TestReferenceDb1RW.dbSchemaVersion200 = True
if self.mgr.refSchemaVersion330 :
print 'DEBUG: Test 3.3.0 reference schema on a 2.0.0 db',\
'(R/W test)'
print('DEBUG: Test 3.3.0 reference schema on a 2.0.0 db',\
'(R/W test)')
elif self.mgr.refSchemaVersion290 :
print('DEBUG: Test 2.9.0 reference schema on a 2.0.0 db',\
'(R/W test)')
......@@ -3369,8 +3369,8 @@ class TestReferenceDb2RO( unittest.TestCase ):
if ( dbSchemaVersion == "1.3.0" ):
TestReferenceDb2RO.dbSchemaVersion200 = False
if self.mgr.refSchemaVersion330 :
print 'ERROR: TestReferenceDb2RO (3.3.0)',\
'cannot be executed on a 1.3.0 db'
print('ERROR: TestReferenceDb2RO (3.3.0)',\
'cannot be executed on a 1.3.0 db')
sys.exit(-1)
elif self.mgr.refSchemaVersion290 :
print('ERROR: TestReferenceDb2RO (2.9.0)',\
......@@ -3394,8 +3394,8 @@ class TestReferenceDb2RO( unittest.TestCase ):
elif ( dbSchemaVersion == "2.0.0" ):
TestReferenceDb2RO.dbSchemaVersion200 = True
if self.mgr.refSchemaVersion330 :
print 'DEBUG: Test 3.3.0 reference schema on a 2.0.0 db',\
'(R/O test)'
print('DEBUG: Test 3.3.0 reference schema on a 2.0.0 db',\
'(R/O test)')
elif self.mgr.refSchemaVersion290 :
print('DEBUG: Test 2.9.0 reference schema on a 2.0.0 db',\
'(R/O test)')
......
......@@ -10,6 +10,7 @@
namespace cool
{
typedef coral::Blob Blob128M;
namespace PyCool
{
namespace Helpers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment