mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 02:08:54 +00:00
enable remote tests on cygwin
the cygwin issue that caused these tests to break was fixed in cygwin at least since cygwin 2.8.0 (maybe even since 2.7.0). also added a comment to our workaround (os_write wrapper, that is needed still for people running older cygwin versions) that it can be removed when cygwin 2.8.0 is considered ancient (and everybody has upgraded to some fixed version).
This commit is contained in:
parent
19c8adb109
commit
4766d66875
3 changed files with 2 additions and 3 deletions
|
@ -42,6 +42,8 @@
|
|||
|
||||
def os_write(fd, data):
|
||||
"""os.write wrapper so we do not lose data for partial writes."""
|
||||
# TODO: this issue is fixed in cygwin since at least 2.8.0, remove this
|
||||
# wrapper / workaround when this version is considered ancient.
|
||||
# This is happening frequently on cygwin due to its small pipe buffer size of only 64kiB
|
||||
# and also due to its different blocking pipe behaviour compared to Linux/*BSD.
|
||||
# Neither Linux nor *BSD ever do partial writes on blocking pipes, unless interrupted by a
|
||||
|
|
|
@ -2835,7 +2835,6 @@ def test_disable2(self):
|
|||
assert not self.cmd('list', self.repository_location)
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.platform == 'cygwin', reason='remote is broken on cygwin and hangs')
|
||||
class RemoteArchiverTestCase(ArchiverTestCase):
|
||||
prefix = '__testsuite__:'
|
||||
|
||||
|
|
|
@ -774,7 +774,6 @@ def test_crash_before_compact(self):
|
|||
self.assert_equal(self.repository.get(H(0)), b'data2')
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.platform == 'cygwin', reason='remote is broken on cygwin and hangs')
|
||||
class RemoteRepositoryTestCase(RepositoryTestCase):
|
||||
repository = None # type: RemoteRepository
|
||||
|
||||
|
@ -901,7 +900,6 @@ def test_legacy_free(self):
|
|||
self.repository.commit()
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.platform == 'cygwin', reason='remote is broken on cygwin and hangs')
|
||||
class RemoteRepositoryCheckTestCase(RepositoryCheckTestCase):
|
||||
|
||||
def open(self, create=False):
|
||||
|
|
Loading…
Reference in a new issue