[gnome-settings-daemon] tests: Fix gvfs error on test teardown



commit d1d3edbaa3aad6c3be6f201c7048c6e70c4e161f
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 5 16:28:22 2018 +0100

    tests: Fix gvfs error on test teardown
    
    Works-around a possible error on teardown in some circumstances:
    rm: cannot remove '/tmp/gsd-power-testeSVBTD/runtime/gvfs': Transport endpoint is not connected
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=793187

 tests/gsdtestcase.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index cf1c9f7..81691b5 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -54,6 +54,7 @@ class GSDTestCase(dbusmock.DBusTestCase):
     @classmethod
     def setUpClass(klass):
         os.environ['GIO_USE_VFS'] = 'local'
+        os.environ['GVFS_DISABLE_FUSE'] = '1'
         # we do some string checks, disable translations
         os.environ['LC_MESSAGES'] = 'C'
         klass.workdir = tempfile.mkdtemp(prefix='gsd-power-test')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]