diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-04-27 15:17:31 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-04-27 15:17:31 +0000 |
commit | 977fd8f4f02d263b729770383e265f0d01d53b9c (patch) | |
tree | bc8442b3cafea94774422c89213bb0310a0eaa92 /cppe/config/TestUtil.py | |
parent | Improved testsuite (diff) | |
download | ice-977fd8f4f02d263b729770383e265f0d01d53b9c.tar.bz2 ice-977fd8f4f02d263b729770383e265f0d01d53b9c.tar.xz ice-977fd8f4f02d263b729770383e265f0d01d53b9c.zip |
IMproved testsuite
Diffstat (limited to 'cppe/config/TestUtil.py')
-rw-r--r-- | cppe/config/TestUtil.py | 16 |
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(): |