summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/qpid-cpp-benchmark
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-08-02 19:43:09 +0000
committerAlan Conway <aconway@apache.org>2011-08-02 19:43:09 +0000
commit5b7b3ce2f07c1d0e05ad6b8084401c6bd25babff (patch)
treec02fd4944b567ee212592a2e43a971ee6cbedfc4 /qpid/cpp/src/tests/qpid-cpp-benchmark
parent89edc041d56903f04d4fb4f3f3302d99a1387056 (diff)
downloadqpid-python-5b7b3ce2f07c1d0e05ad6b8084401c6bd25babff.tar.gz
NO-JIRA: Minor improvements to test scripts.
allhosts: added -X option for running X clients. qpid-cpp-benchmark: accept comma or space-separated lists for --client-host and --broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1153256 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/qpid-cpp-benchmark')
-rwxr-xr-xqpid/cpp/src/tests/qpid-cpp-benchmark3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/qpid-cpp-benchmark b/qpid/cpp/src/tests/qpid-cpp-benchmark
index 6138108558..300d34774f 100755
--- a/qpid/cpp/src/tests/qpid-cpp-benchmark
+++ b/qpid/cpp/src/tests/qpid-cpp-benchmark
@@ -215,7 +215,8 @@ class ReadyReceiver:
raise Exception("Receiver error: %s"%(out))
raise Exception("Timed out waiting for receivers to be ready")
-def flatten(l): return sum(map(lambda s: s.split(","), l),[])
+def flatten(l):
+ return sum(map(lambda s: re.split(re.compile("\s*,\s*|\s+"), s), l), [])
class RoundRobin:
def __init__(self,items):