summaryrefslogtreecommitdiff
path: root/cppe/config/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/config/TestUtil.py')
-rw-r--r--cppe/config/TestUtil.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/cppe/config/TestUtil.py b/cppe/config/TestUtil.py
index 05be9367c50..3f6b221a0af 100644
--- a/cppe/config/TestUtil.py
+++ b/cppe/config/TestUtil.py
@@ -29,7 +29,21 @@ host = "127.0.0.1"
# Don't change anything below this line!
#
-import sys, os, re
+import sys, os, re, getopt
+
+def usage():
+ print "usage: " + sys.argv[0] + " --host host --blocking"
+ sys.exit(2)
+try:
+ opts, args = getopt.getopt(sys.argv[1:], "", ["host=", "blocking"])
+except getopt.GetoptError:
+ usage()
+
+for o, a in opts:
+ if o == "--blocking":
+ blocking = 1
+ if o == "--host":
+ host = a
def getIceVersion():