summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/IceGridAdmin.py13
-rwxr-xr-xscripts/TestUtil.py2
2 files changed, 4 insertions, 11 deletions
diff --git a/scripts/IceGridAdmin.py b/scripts/IceGridAdmin.py
index 27b504d484f..2d11c3c5356 100644
--- a/scripts/IceGridAdmin.py
+++ b/scripts/IceGridAdmin.py
@@ -70,11 +70,7 @@ def getDefaultLocatorProperty():
def startIceGridRegistry(testdir, dynamicRegistration = False):
- iceGrid = ""
- if TestUtil.isVC90():
- iceGrid = os.path.join(TestUtil.getServiceDir(), "icegridregistry")
- else:
- iceGrid = os.path.join(TestUtil.getCppBinDir(), "icegridregistry")
+ iceGrid = TestUtil.getIceGridRegistry()
command = ' --nowarn ' + registryOptions
if dynamicRegistration:
@@ -155,12 +151,7 @@ def iceGridNodePropertiesOverride():
def startIceGridNode(testdir):
- iceGrid = ""
- if TestUtil.isVC90():
- iceGrid = os.path.join(TestUtil.getServiceDir(), "icegridnode")
- else:
- iceGrid = os.path.join(TestUtil.getCppBinDir(), "icegridnode")
-
+ iceGrid = TestUtil.getIceGridNode()
dataDir = os.path.join(testdir, "db", "node")
if not os.path.exists(dataDir):
os.mkdir(dataDir)
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 8fceaaff952..03555dfa4da 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1381,6 +1381,8 @@ def createConfig(path, lines, enc=None):
def getCppBinDir(lang = None):
binDir = os.path.join(getIceDir("cpp"), "bin")
if iceHome:
+ if lang == None:
+ lang = getDefaultMapping()
if lang == "cpp" and isVS2012():
binDir = os.path.join(binDir, "vc110")
if x64: