summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/replication/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceGrid/replication/run.py')
-rwxr-xr-xcpp/test/IceGrid/replication/run.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/cpp/test/IceGrid/replication/run.py b/cpp/test/IceGrid/replication/run.py
index 7742c5c9f21..12adf8c0d38 100755
--- a/cpp/test/IceGrid/replication/run.py
+++ b/cpp/test/IceGrid/replication/run.py
@@ -22,7 +22,18 @@ from scripts import *
TestUtil.addLdPath(os.getcwd())
-IceGridAdmin.iceGridTest("application.xml", '--IceDir="%s" --TestDir="%s"' % (TestUtil.toplevel, os.getcwd()),
- "'properties-override=%s'" % TestUtil.getCommandLine("", TestUtil.DriverConfig("server")).replace("--", ""))
+if TestUtil.sqlType != None and TestUtil.sqlType != "QSQLITE":
+ print "*** This test only supports Freeze or SQLite databases"
+ sys.exit(0)
+
+variables = "'properties-override=%s'" % \
+ TestUtil.getCommandLine("", TestUtil.DriverConfig("server")).replace("--", "")
+if TestUtil.sqlType != None:
+ variables += " db-plugin=IceGridSqlDB:createSqlDB"
+else:
+ variables += " db-plugin=IceGridFreezeDB:createFreezeDB"
+
+IceGridAdmin.iceGridTest("application.xml", '--IceDir="%s" --TestDir="%s"' % (TestUtil.toplevel, os.getcwd()),
+ variables)
TestUtil.cleanup()