Ver Fonte

test_create_read_special_symlink: fix exception in test cleanup code on FreeBSD, fixes #7386

Thomas Waldmann há 2 anos atrás
pai
commit
a3ab390e59
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      src/borg/testsuite/archiver/create_cmd.py

+ 3 - 0
src/borg/testsuite/archiver/create_cmd.py

@@ -798,6 +798,9 @@ class ArchiverTestCase(ArchiverTestCaseBase):
             fd = os.open(fifo_fn, os.O_RDONLY | os.O_NONBLOCK)
             try:
                 os.read(fd, len(data))
+            except OSError:
+                # fails on FreeBSD 13 with BlockingIOError
+                pass
             finally:
                 os.close(fd)
             t.join()