summaryrefslogtreecommitdiff
path: root/cpp/test/Yellow/basicYellow/run.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2002-07-17 20:55:08 +0000
committerDwayne Boone <dwayne@zeroc.com>2002-07-17 20:55:08 +0000
commit3e78a618a8085dba94e06a747be9a1f14b3db3fb (patch)
treee94d7d3d6fa92b3d494badedaa0e4a1c2310a196 /cpp/test/Yellow/basicYellow/run.py
parentAdded .depend (diff)
downloadice-3e78a618a8085dba94e06a747be9a1f14b3db3fb.tar.bz2
ice-3e78a618a8085dba94e06a747be9a1f14b3db3fb.tar.xz
ice-3e78a618a8085dba94e06a747be9a1f14b3db3fb.zip
Mods for running IceBox services in python scripts
Diffstat (limited to 'cpp/test/Yellow/basicYellow/run.py')
-rwxr-xr-xcpp/test/Yellow/basicYellow/run.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/test/Yellow/basicYellow/run.py b/cpp/test/Yellow/basicYellow/run.py
index c1f2ba90b34..fb24061df4a 100755
--- a/cpp/test/Yellow/basicYellow/run.py
+++ b/cpp/test/Yellow/basicYellow/run.py
@@ -34,7 +34,8 @@ updatedClientServerOptions = TestUtil.clientServerOptions.replace("TOPLEVELDIR",
IceBoxEndpoints=' --IceBox.ServiceManager.Endpoints="default -p 12345"'
IceBoxReference=' --IceBox.ServiceManager="ServiceManager:default -p 12345"'
YellowService=" --IceBox.Service.Yellow=YellowService:create" + \
- ' --Yellow.Query.Endpoints="default -p 12346" --Yellow.Admin.Endpoints="default -p 12347"'
+ ' --Yellow.Query.Endpoints="default -p 12346" --Yellow.Admin.Endpoints="default -p 12347"' + \
+ ' --IceBox.PrintServicesReady=Yellow'
dbEnvName = os.path.join(testdir, "db")
TestUtil.cleanDbDir(dbEnvName)
@@ -44,7 +45,7 @@ print "starting yellow service...",
command = IceBox + updatedClientServerOptions + IceBoxEndpoints + YellowService + YellowDBEnv
IceBoxPipe = os.popen(command)
TestUtil.getServerPid(IceBoxPipe)
-TestUtil.getAdapterReady(IceBoxPipe)
+TestUtil.waitServiceReady(IceBoxPipe, "Yellow")
print "ok"
client = os.path.join(testdir, "client")
@@ -62,7 +63,7 @@ for output in clientPipe.xreadlines():
#
# Shutdown yellow.
#
-print "shutting down yellow...",
+print "shutting down yellow service...",
command = IceBoxAdmin + updatedClientOptions + IceBoxReference + r' shutdown'
IceBoxAdminPipe = os.popen(command)
IceBoxAdminStatus = IceBoxAdminPipe.close()