diff options
Diffstat (limited to 'cpp/allTests.py')
-rwxr-xr-x | cpp/allTests.py | 12 |
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 + ":" |