11158: Fixes & test updates for ProjectDirectory.
[arvados.git] / services / fuse / tests / integration_test.py
index c79b1314cd906bf0067b0b3fac3f23b4aa0b0809..ba9cd88eb7d607c6f50beed6b1cecad17c4fabe9 100644 (file)
@@ -1,9 +1,14 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 import arvados
 import arvados_fuse
 import arvados_fuse.command
 import atexit
 import functools
 import inspect
+import llfuse
 import logging
 import multiprocessing
 import os
@@ -72,6 +77,10 @@ class IntegrationTest(unittest.TestCase):
         def decorator(func):
             @functools.wraps(func)
             def wrapper(self, *args, **kwargs):
+                # Workaround for llfuse deadlock bug. See #10805, #8345,
+                # https://bitbucket.org/nikratio/python-llfuse/issues/108
+                llfuse.close = lambda *args: None
+
                 self.mount = None
                 try:
                     with arvados_fuse.command.Mount(