summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2006-12-12 17:32:13 +0000
committerMatthew Newhook <matthew@zeroc.com>2006-12-12 17:32:13 +0000
commit1e7b288ac943a88a8794601b06dc1a490dd981c1 (patch)
tree94dd306775ab9a0c46357baf229c6ea33d4d4a6e /cpp/config/TestUtil.py
parenttemp pause icon (diff)
downloadice-1e7b288ac943a88a8794601b06dc1a490dd981c1.tar.bz2
ice-1e7b288ac943a88a8794601b06dc1a490dd981c1.tar.xz
ice-1e7b288ac943a88a8794601b06dc1a490dd981c1.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1616. Fixed SSL bug with
test/Ice/operations.
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index cf8da7df2bb..aa170d6e37e 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -10,8 +10,8 @@
# **********************************************************************
#
-# Set protocol to "ssl" in case you want to run the tests with the SSL
-# protocol. Otherwise TCP is used.
+# Set protocol to "ssl" in case you want to run the tests with the
+# SSL protocol. Otherwise TCP is used.
#
protocol = ""
#protocol = "ssl"
@@ -53,7 +53,7 @@ import sys, os, re, errno, getopt
from threading import Thread
def usage():
- print "usage: " + sys.argv[0] + " --debug --protocol protocol --compress --host host --threadPerConnection num"
+ print "usage: " + sys.argv[0] + " --debug --protocol ssl|tcp --compress --host host --threadPerConnection num"
sys.exit(2)
try:
opts, args = getopt.getopt(sys.argv[1:], "", ["debug", "protocol=", "compress", "host=", "threadPerConnection="])
@@ -64,6 +64,8 @@ for o, a in opts:
if o == "--debug":
debug = 1
if o == "--protocol":
+ if a not in ( "tcp", "ssl"):
+ usage()
protocol = a
if o == "--compress":
compress = 1