diff options
| author | Alan Conway <aconway@apache.org> | 2011-08-02 19:43:09 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2011-08-02 19:43:09 +0000 |
| commit | d0448b509bf3b0f555902e09820934c7d8150106 (patch) | |
| tree | b4067b0b2c4f1febc37b1da5ecc05be4ce653aee /cpp/src/tests/qpid-cpp-benchmark | |
| parent | 4cbd109e7a909ba4da2f2a321a1e1655345475da (diff) | |
| download | qpid-python-d0448b509bf3b0f555902e09820934c7d8150106.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/qpid@1153256 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/qpid-cpp-benchmark')
| -rwxr-xr-x | cpp/src/tests/qpid-cpp-benchmark | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/tests/qpid-cpp-benchmark b/cpp/src/tests/qpid-cpp-benchmark index 6138108558..300d34774f 100755 --- a/cpp/src/tests/qpid-cpp-benchmark +++ b/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): |
