From 3ec7b5db18cc6249048e46049be537ed135451b3 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 5 Apr 2023 16:26:10 -0600 Subject: tests: Ensure real GIO backends aren't used Set a few environment variables during tests to ensure fake GIO backends are used. This is particularly important with the soup fetcher backend as it can cause strange test errors in containerized test environments. Upstream soup has been setting these 3 environment variables for their tests since 2015. --- Makefile-tests.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile-tests.am b/Makefile-tests.am index a30b86dd..429dafb9 100644 --- a/Makefile-tests.am +++ b/Makefile-tests.am @@ -36,6 +36,9 @@ AM_TESTS_ENVIRONMENT += OT_TESTS_DEBUG=1 \ PATH=$$(cd $(top_builddir)/tests && pwd):$${PATH} \ OSTREE_FEATURES="$(OSTREE_FEATURES)" \ PYTHONUNBUFFERED=1 \ + GSETTINGS_BACKEND=memory \ + GIO_USE_PROXY_RESOLVER=dummy \ + GIO_USE_VFS=local \ $(NULL) if BUILDOPT_ASAN AM_TESTS_ENVIRONMENT += OT_SKIP_READDIR_RAND=1 G_SLICE=always-malloc -- cgit v1.2.1