[Zope3-checkins] CVS: Zope/lib/python/zdaemon/tests -
testzdrun.py:1.12
Stefan H. Holek
stefan at epy.co.at
Sat Apr 3 05:24:28 EST 2004
Update of /cvs-repository/Zope/lib/python/zdaemon/tests
In directory cvs.zope.org:/tmp/cvs-serv14009/lib/python/zdaemon/tests
Modified Files:
testzdrun.py
Log Message:
On Mac OS X the touch command lives in /usr/bin
=== Zope/lib/python/zdaemon/tests/testzdrun.py 1.11 => 1.12 ===
--- Zope/lib/python/zdaemon/tests/testzdrun.py:1.11 Thu Feb 26 19:31:58 2004
+++ Zope/lib/python/zdaemon/tests/testzdrun.py Sat Apr 3 05:24:26 2004
@@ -233,7 +233,10 @@
# With umask 666, we should create a file that we aren't able
# to write. If access says no, assume that umask works.
try:
- self.rundaemon(["-m", "666", "/bin/touch", path])
+ touch_cmd = "/bin/touch"
+ if not os.path.exists(touch_cmd):
+ touch_cmd = "/usr/bin/touch" # Mac OS X
+ self.rundaemon(["-m", "666", touch_cmd, path])
for i in range(5):
if not os.path.exists(path):
time.sleep(0.1)
More information about the Zope3-Checkins
mailing list