[tracker/wip/carlosg/portal-test-timeouts: 1/2] tests: Disable GVFS in functional tests




commit b9e6b93282cbf3e5e995db6b9837c820577dcdcd
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jul 5 12:32:23 2021 +0200

    tests: Disable GVFS in functional tests
    
    On some of these tests, we create a per-testcase dbus environment,
    thus rely on g_bus_get*() default connections to be correctly tear
    down and created again for the next testcase.
    
    GVFS does not seem to play along with this, and keeps the default
    GDBusConnections alive between runs. This may fail with "Connection
    already closed" if we attempted to get a default session/system bus
    on later testcases, since the dbus daemon is actually tear down.
    
    We actually don't need to pull GVFS here at all, so disable it
    for our testcases to tiptoe the issue.
    
    Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/314

 tests/functional-tests/meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build
index 23f514d09..934a59833 100644
--- a/tests/functional-tests/meson.build
+++ b/tests/functional-tests/meson.build
@@ -43,6 +43,7 @@ test_env.prepend('GI_TYPELIB_PATH', tracker_sparql_uninstalled_dir)
 test_env.prepend('LD_LIBRARY_PATH', tracker_sparql_uninstalled_dir)
 test_env.prepend('PYTHONPATH', tracker_uninstalled_testutils_dir)
 test_env.set('TRACKER_FUNCTIONAL_TEST_CONFIG', config_json_full_path)
+test_env.set('GIO_USE_VFS', 'local')
 
 foreach test_name: functional_tests
   file = meson.current_source_dir() / '@0@.py'.format(test_name)


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