summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2016-06-07 13:12:36 +0200
committerOndrej Holy <oholy@redhat.com>2016-06-07 13:12:36 +0200
commit2be06cd34bb660fa7f05bc27bc728e9ddce46c7d (patch)
tree6ba3d94098fd09c592f6e674dbc912372978e1e7 /test
parent7f093223b626489b41a76f396a2f9eafc5ddbb43 (diff)
downloadgvfs-2be06cd34bb660fa7f05bc27bc728e9ddce46c7d.tar.gz
test: Be sure that gvfs is used by gio
Currently the tests may fail with: Error mounting location: volume doesn't implement mount This may happen if GIO_USE_VFS=local, which is currently set by gnome-desktop-testing as defaults. Set GIO_USE_VFS=gvfs for our process to fix it. https://bugzilla.gnome.org/show_bug.cgi?id=734370
Diffstat (limited to 'test')
-rwxr-xr-xtest/gvfs-test2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/gvfs-test b/test/gvfs-test
index d180d9ab..662a9dcb 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -37,6 +37,8 @@ from glob import glob
from gi.repository import GLib, Gio
+os.environ['GIO_USE_VFS'] = 'gvfs'
+
try:
import gi
gi.require_version('UMockdev', '1.0')