summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-09-11 13:02:32 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-09-11 13:02:32 +0200
commitcedcb5c1047b94890c80a2d71afb808898233b9b (patch)
tree637b78cd06171738a3300043b0af43b43d17b0dc /scripts/TestUtil.py
parentMerge remote-tracking branch 'origin/encoding11' into withoutsync (diff)
downloadice-cedcb5c1047b94890c80a2d71afb808898233b9b.tar.bz2
ice-cedcb5c1047b94890c80a2d71afb808898233b9b.tar.xz
ice-cedcb5c1047b94890c80a2d71afb808898233b9b.zip
Support for IceBox services MetricsAdmin and IceStorm metrics
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index e94145ed17a..858169ba928 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -7,7 +7,7 @@
#
# **********************************************************************
-import sys, os, re, getopt, time, string, threading, atexit
+import sys, os, re, getopt, time, string, threading, atexit, platform
# Global flags and their default values.
protocol = "" # If unset, default to TCP. Valid values are "tcp" or "ssl".
@@ -846,9 +846,9 @@ def getCommandLineProperties(exe, config):
#
# Turn on instrumentation
#
- components.append("--Ice.Admin.Endpoints=tcp");
- components.append("--Ice.Admin.InstanceName=" + config.type);
- components.append("--IceMX.Metrics.Debug.GroupBy=id");
+ #components.append("--Ice.Admin.Endpoints=tcp");
+ #components.append("--Ice.Admin.InstanceName=" + config.type);
+ #components.append("--IceMX.Metrics.Debug.GroupBy=id");
#
# Now we add additional components dependent on the desired
@@ -914,7 +914,10 @@ def getCommandLine(exe, config, options = ""):
if x64:
arch = "arch -x86_64 "
else:
- arch = "arch -i386 "
+ # We don't really know what architecture the binaries were
+ # built with, prefer 32 bits if --x64 is not set and if 32
+ # bits binaries aren't available, 64 bits will be used.
+ arch = "arch -i386 -x86_64 "
output = getStringIO()
@@ -1093,7 +1096,8 @@ def spawnClient(cmd, env=None, cwd=None, echo=True, startReader=True, lang=None)
def spawnServer(cmd, env=None, cwd=None, count=1, adapter=None, echo=True, lang=None):
server = spawn(cmd, env, quoteArgument(cwd), lang=lang)
- cout = count + 1
+ # Count + 1 if IceMX enabled
+ #cout = count + 1
if adapter:
server.expect("%s ready\n" % adapter)
else: