diff options
Diffstat (limited to 'cpp/test/IceGrid/fileLock/run.py')
-rwxr-xr-x | cpp/test/IceGrid/fileLock/run.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/test/IceGrid/fileLock/run.py b/cpp/test/IceGrid/fileLock/run.py index 3de389c0957..52358f410f6 100755 --- a/cpp/test/IceGrid/fileLock/run.py +++ b/cpp/test/IceGrid/fileLock/run.py @@ -22,7 +22,7 @@ import TestUtil, IceGridAdmin testdir = os.getcwd(); -# No need to spawn repliacs for this test. +# No need to spawn replicas for this test. IceGridAdmin.nreplicas = 0 def runIceGridRegistry(): @@ -36,7 +36,7 @@ def runIceGridRegistry(): cmd = command + ' ' + \ r' --Ice.ProgramName=registry' + \ r' --IceGrid.Registry.Client.Endpoints="default -p ' + str(IceGridAdmin.iceGridPort) + '" ' + \ - r' --IceGrid.Registry.Data="' + dataDir + '"' + r' --IceGrid.Registry.LMDB.MapSize=1 --IceGrid.Registry.LMDB.Path="' + dataDir + '"' driverConfig = TestUtil.DriverConfig("server") driverConfig.lang = "cpp" @@ -48,9 +48,11 @@ def runIceGridRegistry(): registryProcs = IceGridAdmin.startIceGridRegistry(testdir) sys.stdout.write("testing IceGrid file lock... ") +IceGridAdmin.iceGridPort = 12011 iceGrid = runIceGridRegistry() -iceGrid.expect(".*IceUtil::FileLockedException.*") +iceGrid.expect(".*IceUtil::FileLockException.*") iceGrid.wait() +IceGridAdmin.iceGridPort = 12010 print("ok") IceGridAdmin.shutdownIceGridRegistry(registryProcs) |