summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 6bbe35a032f..45c24174ed9 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -168,8 +168,6 @@ toplevel = path[0]
def sanitize(cp):
np = ""
for p in cp.split(os.pathsep):
- if os.path.normpath(p) == "classes":
- continue
if len(np) > 0:
np = np + os.pathsep
np = np + p
@@ -1007,7 +1005,11 @@ def getDefaultServerFile():
if lang == "py":
return "Server.py"
if lang in ["java", "javae"]:
- return directoryToPackage() + ".Server"
+ pkg = directoryToPackage()
+ if len(pkg) > 0:
+ pkg = pkg + "."
+ return pkg + "Server"
+ raise RuntimeError("unknown language")
def getDefaultClientFile(lang = None):
if lang is None:
@@ -1021,7 +1023,11 @@ def getDefaultClientFile(lang = None):
if lang == "py":
return "Client.py"
if lang in ["java", "javae"]:
- return directoryToPackage() + ".Client"
+ pkg = directoryToPackage()
+ if len(pkg) > 0:
+ pkg = pkg + "."
+ return pkg + "Client"
+ raise RuntimeError("unknown language")
def getDefaultCollocatedFile():
lang = getDefaultMapping()