diff options
Diffstat (limited to 'cpp/test/Ice/exceptions/run.py')
-rwxr-xr-x | cpp/test/Ice/exceptions/run.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/Ice/exceptions/run.py b/cpp/test/Ice/exceptions/run.py index c6390222383..2873635c052 100755 --- a/cpp/test/Ice/exceptions/run.py +++ b/cpp/test/Ice/exceptions/run.py @@ -11,16 +11,16 @@ import os, sys -for toplevel in ["", "..", os.path.join("..", ".."), os.path.join("..", "..", "..")]: - if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")): +for toplevel in [".", "..", "../..", "../../..", "../../../.."]: + if os.path.exists(os.path.normpath(toplevel + "/config/TestUtil.py")): break else: raise "can't find toplevel directory!" -sys.path.append(os.path.join(toplevel, "config")) +sys.path.append(os.path.normpath(toplevel + "/config")) import TestUtil -name = os.path.join("Ice", "exceptions") +name = "Ice/exceptions" TestUtil.clientServerTest(toplevel, name) TestUtil.collocatedTest(toplevel, name) sys.exit(1) |