diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-04-25 11:59:02 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-04-25 11:59:02 +0200 |
commit | 981759144e754de8150e940ce7de89e6e769660d (patch) | |
tree | 15154080af508ffa5b3c02c948e636384c84f93a /cpp/test/IceGrid/fileLock/run.py | |
parent | Java test and bug fixes (diff) | |
parent | Removed bogus sl/chat/bin directory (diff) | |
download | ice-981759144e754de8150e940ce7de89e6e769660d.tar.bz2 ice-981759144e754de8150e940ce7de89e6e769660d.tar.xz ice-981759144e754de8150e940ce7de89e6e769660d.zip |
Merge remote-tracking branch 'origin/master' into encoding11
Diffstat (limited to 'cpp/test/IceGrid/fileLock/run.py')
-rwxr-xr-x | cpp/test/IceGrid/fileLock/run.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cpp/test/IceGrid/fileLock/run.py b/cpp/test/IceGrid/fileLock/run.py index 8068eb87cff..b3eaad29b32 100755 --- a/cpp/test/IceGrid/fileLock/run.py +++ b/cpp/test/IceGrid/fileLock/run.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # ********************************************************************** # -# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved. +# Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved. # # This copy of Ice is licensed to you under the terms described in the # ICE_LICENSE file included in this distribution. @@ -16,9 +16,9 @@ if len(head) > 0: path = [os.path.join(head, p) for p in path] path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ] if len(path) == 0: - raise "can't find toplevel directory!" -sys.path.append(os.path.join(path[0])) -from scripts import * + raise RuntimeError("can't find toplevel directory!") +sys.path.append(os.path.join(path[0], "scripts")) +import TestUtil, IceGridAdmin testdir = os.getcwd(); @@ -52,11 +52,10 @@ def runIceGridRegistry(): registryProcs = IceGridAdmin.startIceGridRegistry(testdir) -print "testing IceGrid file lock...", +sys.stdout.write("testing IceGrid file lock... ") iceGrid = runIceGridRegistry() iceGrid.expect(".*IceUtil::FileLockedException.*") iceGrid.wait() -print "ok" +print("ok") IceGridAdmin.shutdownIceGridRegistry(registryProcs) - |