summaryrefslogtreecommitdiff
path: root/java/allTests.py
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
committerBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
commitabada90e3f84dc703b8ddc9efcbed8a946fadead (patch)
tree2c6f9dccd510ea97cb927a7bd635422efaae547a /java/allTests.py
parentremoving trace message (diff)
downloadice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip
Expanded tabs into spaces
Diffstat (limited to 'java/allTests.py')
-rwxr-xr-xjava/allTests.py56
1 files changed, 28 insertions, 28 deletions
diff --git a/java/allTests.py b/java/allTests.py
index 7baf21bca33..2f77843a30c 100755
--- a/java/allTests.py
+++ b/java/allTests.py
@@ -50,25 +50,25 @@ def runTests(args, tests, num = 0):
#
for i in tests:
- i = os.path.normpath(i)
- dir = os.path.join(toplevel, "test", i)
-
- print
- if(num > 0):
- print "[" + str(num) + "]",
- print "*** running tests in " + dir,
- print
+ i = os.path.normpath(i)
+ dir = os.path.join(toplevel, "test", i)
+
+ print
+ if(num > 0):
+ print "[" + str(num) + "]",
+ print "*** running tests in " + dir,
+ print
if isWin9x():
status = os.system("python " + os.path.join(dir, "run.py " + args))
else:
status = os.system(os.path.join(dir, "run.py " + args))
- if status:
- if(num > 0):
- print "[" + str(num) + "]",
- print "test in " + dir + " failed with exit status", status,
- sys.exit(status)
+ if status:
+ if(num > 0):
+ print "[" + str(num) + "]",
+ print "test in " + dir + " failed with exit status", status,
+ sys.exit(status)
#
# List of all basic tests.
@@ -111,7 +111,7 @@ def usage():
try:
opts, args = getopt.getopt(sys.argv[1:], "lr:R:", \
- ["debug", "protocol=", "compress", "host=", "threadPerConnection"])
+ ["debug", "protocol=", "compress", "host=", "threadPerConnection"])
except getopt.GetoptError:
usage()
@@ -124,26 +124,26 @@ for o, a in opts:
if o == "-l":
loop = 1
if o == "-r" or o == '-R':
- import re
- regexp = re.compile(a)
- if o == '-r':
- def rematch(x): return regexp.search(x)
- else:
- def rematch(x): return not regexp.search(x)
- tests = filter(rematch, tests)
+ import re
+ regexp = re.compile(a)
+ if o == '-r':
+ def rematch(x): return regexp.search(x)
+ else:
+ def rematch(x): return not regexp.search(x)
+ tests = filter(rematch, tests)
if o == "--protocol":
- if a not in ( "ssl", "tcp"):
- usage()
- args += " " + o + " " + a
+ if a not in ( "ssl", "tcp"):
+ usage()
+ args += " " + o + " " + a
if o == "--host" :
- args += " " + o + " " + a
+ args += " " + o + " " + a
if o in ( "--debug", "--compress", "--threadPerConnection" ):
- args += " " + o
+ args += " " + o
if loop:
num = 1
while 1:
- runTests(args, tests, num)
- num += 1
+ runTests(args, tests, num)
+ num += 1
else:
runTests(args, tests)