Browse Source

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

Thomas Waldmann 2 years ago
parent
commit
a3ab390e59
1 changed files with 3 additions and 0 deletions
  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)
             fd = os.open(fifo_fn, os.O_RDONLY | os.O_NONBLOCK)
             try:
             try:
                 os.read(fd, len(data))
                 os.read(fd, len(data))
+            except OSError:
+                # fails on FreeBSD 13 with BlockingIOError
+                pass
             finally:
             finally:
                 os.close(fd)
                 os.close(fd)
             t.join()
             t.join()