diff options
Diffstat (limited to 'java/test/Ice/inheritance/run.py')
-rwxr-xr-x | java/test/Ice/inheritance/run.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/test/Ice/inheritance/run.py b/java/test/Ice/inheritance/run.py index f9ade5a28ff..19badccf022 100755 --- a/java/test/Ice/inheritance/run.py +++ b/java/test/Ice/inheritance/run.py @@ -10,7 +10,7 @@ import os, sys -for toplevel in [".", "..", "../..", "../../..", "../../../.."]: +for toplevel in [".", "..", "../..", "../../..", "../../../..", "../../../../.."]: toplevel = os.path.normpath(toplevel) if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")): break @@ -21,9 +21,9 @@ sys.path.append(os.path.join(toplevel, "config")) import TestUtil name = os.path.join("Ice", "inheritance") -testdir = os.path.join(toplevel, "test", name) -os.environ["CLASSPATH"] = os.path.join(testdir, "classes") + TestUtil.sep + os.getenv("CLASSPATH", "") +testdir = os.path.dirname(os.path.abspath(__file__)) +os.environ["CLASSPATH"] = os.path.join(testdir, "classes") + os.pathsep + os.getenv("CLASSPATH", "") -TestUtil.clientServerTest() -TestUtil.collocatedTest() +TestUtil.clientServerTest(name) +TestUtil.collocatedTest(name) sys.exit(0) |