diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-12-21 14:50:01 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-12-21 14:50:01 -0800 |
commit | a6cb1876074eb30359bc4bc98ef8c337c14772a4 (patch) | |
tree | 47c59fcafdd04738dc5857d7c22215b69fdebc6d /scripts/TestUtil.py | |
parent | minor fixes to RPM_README (diff) | |
download | ice-a6cb1876074eb30359bc4bc98ef8c337c14772a4.tar.bz2 ice-a6cb1876074eb30359bc4bc98ef8c337c14772a4.tar.xz ice-a6cb1876074eb30359bc4bc98ef8c337c14772a4.zip |
bug 4527: PHP test script failure on Windows
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 1352121dcec..189735453a5 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -494,8 +494,12 @@ def phpSetup(): # if isWin32(): ext = "php_ice.dll" - extDir = os.path.abspath(os.path.join(getIceDir("php"), "lib")) - incDir = extDir + if not iceHome: + extDir = os.path.abspath(os.path.join(getIceDir("php"), "lib")) + incDir = extDir + else: + extDir = os.path.join(iceHome, "bin") + incDir = os.path.join(iceHome, "php") else: ext = "IcePHP.so" if not iceHome: @@ -524,10 +528,10 @@ def phpSetup(): tmpini = open("tmp.ini", "w") tmpini.write("; Automatically generated by Ice test driver.\n") if extDir: - tmpini.write("extension_dir=%s\n" % extDir) + tmpini.write("extension_dir=\"%s\"\n" % extDir) tmpini.write("extension=%s\n" % ext) if incDir: - tmpini.write("include_path=%s\n" % incDir) + tmpini.write("include_path=\"%s\"\n" % incDir) tmpini.close() def getIceVersion(): @@ -1303,7 +1307,7 @@ class PhpCleanup: def __del__(self): if os.path.exists("tmp.ini"): os.remove("tmp.ini") - + # TODO: Perhaps this should be done when the tmp.ini file is created. try: lang = getDefaultMapping() |