summaryrefslogtreecommitdiff
path: root/java/test/Slice/generation/run.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2009-11-26 23:24:04 +0100
committerJose <jose@zeroc.com>2009-11-26 23:24:04 +0100
commitcd2034a7bd10e15544479e40afc239b085070f46 (patch)
treebc5580709b76b15e55482316c2ed5f0df1375a84 /java/test/Slice/generation/run.py
parent4385 - new StreamApi & UserExecption (diff)
downloadice-cd2034a7bd10e15544479e40afc239b085070f46.tar.bz2
ice-cd2034a7bd10e15544479e40afc239b085070f46.tar.xz
ice-cd2034a7bd10e15544479e40afc239b085070f46.zip
4279 - alllTest.py fails to run if source path contains white spaces.
Diffstat (limited to 'java/test/Slice/generation/run.py')
-rwxr-xr-xjava/test/Slice/generation/run.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/test/Slice/generation/run.py b/java/test/Slice/generation/run.py
index 478486e6129..d2c39230f94 100755
--- a/java/test/Slice/generation/run.py
+++ b/java/test/Slice/generation/run.py
@@ -26,9 +26,9 @@ slice2java = os.path.join(TestUtil.getCppBinDir(), "slice2java")
if not os.path.exists("classes"):
os.mkdir("classes")
-command = slice2java + " --list-generated --output-dir classes File1.ice File2.ice"
-stdin, stdout, stderr = os.popen3(command)
-lines1 = stdout.readlines()
+command = '"' + slice2java + '" --list-generated --output-dir classes File1.ice File2.ice's
+p = TestUtil.runCommand(command)
+lines1 = p.stdout.readlines()
lines2 = open(os.path.join(os.getcwd(), "list-generated.out"), "r").readlines()
if len(lines1) != len(lines2):
print "failed!"