From 3e78a618a8085dba94e06a747be9a1f14b3db3fb Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Wed, 17 Jul 2002 20:55:08 +0000 Subject: Mods for running IceBox services in python scripts --- cpp/test/Yellow/basicYellow/run.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpp/test/Yellow/basicYellow/run.py') 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() -- cgit v1.2.3