mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
test_runner.py: skip the start/stop test when sys.platform is win32/cygwin.
The previous twisted.python.runtime.platformType approach didn't catch cygwin for some reason.
This commit is contained in:
parent
f72ef4d8f9
commit
645927ca73
@ -1,11 +1,10 @@
|
||||
|
||||
from twisted.trial import unittest
|
||||
from twisted.python.runtime import platformType
|
||||
|
||||
import time
|
||||
from cStringIO import StringIO
|
||||
from twisted.python import usage
|
||||
import os.path
|
||||
import sys, os.path
|
||||
from allmydata.scripts import runner, debug
|
||||
from allmydata.util import fileutil
|
||||
|
||||
@ -107,7 +106,9 @@ class RunNode(unittest.TestCase):
|
||||
return basedir
|
||||
|
||||
def test_client(self):
|
||||
if platformType == "win32":
|
||||
if sys.platform in ("win32", "cygwin"):
|
||||
# thus might not be entirely true, but I've yet to see proper
|
||||
# daemonization on a windows box. -warner
|
||||
raise unittest.SkipTest("twistd does not fork under windows")
|
||||
basedir = self.workdir("test_client")
|
||||
c1 = os.path.join(basedir, "c1")
|
||||
|
Loading…
Reference in New Issue
Block a user