summaryrefslogtreecommitdiff
path: root/cpp/allTests.py
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-09 19:54:51 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-09 19:54:51 +0000
commitff2cdbada1355055b60e36a53d8bdb160abacc0a (patch)
treece00902f17e79811f65c149354584e8fed440231 /cpp/allTests.py
parentfixes (diff)
downloadice-ff2cdbada1355055b60e36a53d8bdb160abacc0a.tar.bz2
ice-ff2cdbada1355055b60e36a53d8bdb160abacc0a.tar.xz
ice-ff2cdbada1355055b60e36a53d8bdb160abacc0a.zip
lots of fixes
Diffstat (limited to 'cpp/allTests.py')
-rwxr-xr-xcpp/allTests.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/cpp/allTests.py b/cpp/allTests.py
index 841189f429e..70c869fc64a 100755
--- a/cpp/allTests.py
+++ b/cpp/allTests.py
@@ -12,6 +12,7 @@
import os, sys
for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+ toplevel = os.path.normpath(toplevel)
if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
break
else:
@@ -47,20 +48,13 @@ if sys.argv[1:]:
newtests.append(i)
tests = newtests
-import string
-
#
# Run each of the tests.
#
for i in tests:
- dir = os.path.join(toplevel, "test")
- #
- # Construct the test path
- #
- pathElements = os.path.join(string.split(i, "/"))
- for element in pathElements:
- dir = os.path.join(dir, element)
+ i = os.path.normpath(i)
+ dir = os.path.join(toplevel, "test", i)
print
print "*** running tests in " + dir + ":"