summaryrefslogtreecommitdiff
path: root/java/test/IceXML/encoding/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/IceXML/encoding/run.py')
-rwxr-xr-xjava/test/IceXML/encoding/run.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/java/test/IceXML/encoding/run.py b/java/test/IceXML/encoding/run.py
index 6befbf0e0bc..d911d5c207d 100755
--- a/java/test/IceXML/encoding/run.py
+++ b/java/test/IceXML/encoding/run.py
@@ -25,18 +25,19 @@ else:
sys.path.append(os.path.join(toplevel, "config"))
import TestUtil
-testdir = os.path.join(toplevel,"test", "IceXML", "encoding")
-classpath = os.path.join(toplevel, "lib") + TestUtil.sep + os.path.join(testdir, "classes") + \
- TestUtil.sep + os.getenv("CLASSPATH", "")
-client = "java -classpath \"" + classpath + "\" Client"
+name = os.path.join("IceXML", "encoding")
+testdir = os.path.join(toplevel, "test", name)
+os.environ["CLASSPATH"] = os.path.join(testdir, "classes") + TestUtil.sep + os.environ["CLASSPATH"]
+
+client = "java -ea Client"
print "starting client...",
-clientPipe = os.popen(client)
+clientPipe = os.popen(client + " " + testdir)
print "ok"
for output in clientPipe.xreadlines():
print output,
-
+
clientStatus = clientPipe.close()
if clientStatus: